From: Richard Purdie Date: Wed, 6 Dec 2006 16:29:08 +0000 (+0000) Subject: runqueue.py: Send SIGINT upon Ctrl+C, not SIGNTERM X-Git-Tag: rev_ivi_2015_02_04~32861 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b2809a3d7a41e5369a59221bfb1c11fbafd02d98;p=scm%2Fbb%2Ftizen-distro.git runqueue.py: Send SIGINT upon Ctrl+C, not SIGNTERM git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1014 311d38ba-8fff-0310-9ca6-ca027cbcb966 --- diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index 5768e3c..4da543f 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py @@ -422,7 +422,7 @@ class RunQueue: # Bypass finally below active_builds = 0 # Stop Ctrl+C being sent to children - signal.signal(signal.SIGINT, signal.SIG_IGN) + # signal.signal(signal.SIGINT, signal.SIG_IGN) # Make the child the process group leader os.setpgid(0, 0) sys.stdin = open('/dev/null', 'r') @@ -472,9 +472,9 @@ class RunQueue: if len(failed_fnids) > 0: return failed_fnids except: - bb.msg.note(1, bb.msg.domain.RunQueue, "Sending SIGTERM to remaining %s tasks" % active_builds) + bb.msg.note(1, bb.msg.domain.RunQueue, "Sending SIGINT to remaining %s tasks" % active_builds) for k, v in build_pids.iteritems(): - os.kill(-k, signal.SIGTERM) + os.kill(-k, signal.SIGINT) raise # Sanity Checks