summaryrefslogtreecommitdiffstats
path: root/func
diff options
context:
space:
mode:
authorKrzysztof A. Adamski <krzysztofa@gmail.com>2008-06-04 17:45:22 -0400
committerKrzysztof A. Adamski <krzysztofa@gmail.com>2008-06-04 17:45:22 -0400
commit4a8f06e59294fe75f0d0bffa826ff9db0d52ee5a (patch)
tree747c5ce6ea2c13955c814ee9afb90d653480fb79 /func
parentaa5b6241c97ebe1154eca2081b88dbe017cbac80 (diff)
downloadthird_party-func-4a8f06e59294fe75f0d0bffa826ff9db0d52ee5a.tar.gz
third_party-func-4a8f06e59294fe75f0d0bffa826ff9db0d52ee5a.tar.xz
third_party-func-4a8f06e59294fe75f0d0bffa826ff9db0d52ee5a.zip
Register empty SIGCHLD handler to kill zombies.
Diffstat (limited to 'func')
-rw-r--r--func/jobthing.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/func/jobthing.py b/func/jobthing.py
index 77a73fb..6024274 100644
--- a/func/jobthing.py
+++ b/func/jobthing.py
@@ -23,6 +23,7 @@ import sys
import fcntl
import forkbomb
import utils
+import signal
JOB_ID_RUNNING = 0
JOB_ID_FINISHED = 1
@@ -134,6 +135,7 @@ def minion_async_run(retriever, method, args):
job_id = "%s-minion" % time.time()
+ signal.signal(signal.SIGCHLD, 0)
pid = os.fork()
if pid != 0:
__update_status(job_id, JOB_ID_RUNNING, -1)