diff options
| -rw-r--r-- | cron/qrunner | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cron/qrunner b/cron/qrunner index 68e45e266..212a39ca5 100644 --- a/cron/qrunner +++ b/cron/qrunner @@ -122,7 +122,12 @@ def start_runner(qrclass, slice, count): else: # child qrunner = qrclass(slice, count).run() - syslog('qrunner', '%s qrunner exiting' % qrclass) + try: + syslog('qrunner', '%s qrunner exiting' % qrclass) + except KeyboardInterrupt: + # Due to race conditions, the subproc could get the SIGINT inside + # the syslog call. It's of no consequence. + pass os._exit(0) |
