summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/runqueue.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/runqueue.py')
-rw-r--r--bitbake/lib/bb/runqueue.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index 07821e23de..5768e3cf19 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -423,6 +423,8 @@ class RunQueue:
423 active_builds = 0 423 active_builds = 0
424 # Stop Ctrl+C being sent to children 424 # Stop Ctrl+C being sent to children
425 signal.signal(signal.SIGINT, signal.SIG_IGN) 425 signal.signal(signal.SIGINT, signal.SIG_IGN)
426 # Make the child the process group leader
427 os.setpgid(0, 0)
426 sys.stdin = open('/dev/null', 'r') 428 sys.stdin = open('/dev/null', 'r')
427 cooker.configuration.cmd = taskname[3:] 429 cooker.configuration.cmd = taskname[3:]
428 try: 430 try:
@@ -472,7 +474,7 @@ class RunQueue:
472 except: 474 except:
473 bb.msg.note(1, bb.msg.domain.RunQueue, "Sending SIGTERM to remaining %s tasks" % active_builds) 475 bb.msg.note(1, bb.msg.domain.RunQueue, "Sending SIGTERM to remaining %s tasks" % active_builds)
474 for k, v in build_pids.iteritems(): 476 for k, v in build_pids.iteritems():
475 os.kill(k, signal.SIGTERM) 477 os.kill(-k, signal.SIGTERM)
476 raise 478 raise
477 479
478 # Sanity Checks 480 # Sanity Checks