projects
/
scm
/
bb
/
tizen-distro.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90ef940
)
bitbake runqueue.py: Set children as process group leaders and send SIGTERM to the...
author
Richard Purdie
<richard@openedhand.com>
Mon, 4 Dec 2006 17:30:47 +0000
(17:30 +0000)
committer
Richard Purdie
<richard@openedhand.com>
Mon, 4 Dec 2006 17:30:47 +0000
(17:30 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@998
311d38ba
-8fff-0310-9ca6-
ca027cbcb966
bitbake/lib/bb/runqueue.py
patch
|
blob
|
history
diff --git
a/bitbake/lib/bb/runqueue.py
b/bitbake/lib/bb/runqueue.py
index
07821e2
..
5768e3c
100644
(file)
--- a/
bitbake/lib/bb/runqueue.py
+++ b/
bitbake/lib/bb/runqueue.py
@@
-423,6
+423,8
@@
class RunQueue:
active_builds = 0
# Stop Ctrl+C being sent to children
signal.signal(signal.SIGINT, signal.SIG_IGN)
+ # Make the child the process group leader
+ os.setpgid(0, 0)
sys.stdin = open('/dev/null', 'r')
cooker.configuration.cmd = taskname[3:]
try:
@@
-472,7
+474,7
@@
class RunQueue:
except:
bb.msg.note(1, bb.msg.domain.RunQueue, "Sending SIGTERM to remaining %s tasks" % active_builds)
for k, v in build_pids.iteritems():
- os.kill(k, signal.SIGTERM)
+ os.kill(
-
k, signal.SIGTERM)
raise
# Sanity Checks