runloop.c - Rewrite check_pause