From 06647007ed0c1520c1e2912d802fd20fa70b7021 Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Tue, 3 Apr 2001 03:06:25 +0000 Subject: start_runner(): Due to race conditions, the subproc could get the SIGINT inside the syslog call. It's of no consequence. --- cron/qrunner | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3-70-g09d2