diff options
-rw-r--r-- | bitbake/lib/bb/runqueue.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index 83c3ccf882..ef3cbd3067 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py @@ -492,7 +492,8 @@ class RunQueue: # signal.signal(signal.SIGINT, signal.SIG_IGN) # Make the child the process group leader os.setpgid(0, 0) - sys.stdin = open('/dev/null', 'r') + newsi = os.open('/dev/null', os.O_RDWR) + os.dup2(newsi, sys.stdin.fileno()) self.cooker.configuration.cmd = taskname[3:] try: self.cooker.tryBuild(fn, False) |