diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-18 11:43:32 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-18 11:54:28 +0000 |
commit | 359a4d8bf72867b4d5f3daaf8c4f14a82a810107 (patch) | |
tree | 50ba2f22166be41d8c6ea712b99242f7641bf2c1 /bitbake/lib/bb/runqueue.py | |
parent | 15751138968ecaca42b247685142e5f495d6eccd (diff) | |
download | poky-359a4d8bf72867b4d5f3daaf8c4f14a82a810107.tar.gz |
bitbake/runqueue.py: Move SIGCHLD handler to wrap none server sleep call
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/runqueue.py')
-rw-r--r-- | bitbake/lib/bb/runqueue.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index 7d1f48aee2..8a88fe026d 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py | |||
@@ -748,9 +748,6 @@ class RunQueueData: | |||
748 | self.rqdata.runq_depends[task], | 748 | self.rqdata.runq_depends[task], |
749 | self.rqdata.runq_revdeps[task]) | 749 | self.rqdata.runq_revdeps[task]) |
750 | 750 | ||
751 | # Dummy signal handler to ensure we break out of sleep upon SIGCHLD | ||
752 | def chldhandler(signum, stackframe): | ||
753 | pass | ||
754 | 751 | ||
755 | class RunQueue: | 752 | class RunQueue: |
756 | def __init__(self, cooker, cfgData, dataCache, taskData, targets): | 753 | def __init__(self, cooker, cfgData, dataCache, taskData, targets): |
@@ -764,8 +761,6 @@ class RunQueue: | |||
764 | 761 | ||
765 | self.state = runQueuePrepare | 762 | self.state = runQueuePrepare |
766 | 763 | ||
767 | signal.signal(signal.SIGCHLD, chldhandler) | ||
768 | |||
769 | def check_stamps(self): | 764 | def check_stamps(self): |
770 | unchecked = {} | 765 | unchecked = {} |
771 | current = [] | 766 | current = [] |
@@ -1107,8 +1102,6 @@ class RunQueueExecute: | |||
1107 | # themselves | 1102 | # themselves |
1108 | bblogger.handlers = [bb.event.LogHandler()] | 1103 | bblogger.handlers = [bb.event.LogHandler()] |
1109 | 1104 | ||
1110 | signal.signal(signal.SIGCHLD, signal.SIG_DFL) | ||
1111 | |||
1112 | self.rq.state = runQueueChildProcess | 1105 | self.rq.state = runQueueChildProcess |
1113 | # Make the child the process group leader | 1106 | # Make the child the process group leader |
1114 | os.setpgid(0, 0) | 1107 | os.setpgid(0, 0) |