diff options
Diffstat (limited to 'bitbake/lib/bb/runqueue.py')
| -rw-r--r-- | bitbake/lib/bb/runqueue.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index be873ff7dc..94b456a988 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py | |||
| @@ -24,11 +24,14 @@ Handles preparation and execution of a queue of tasks | |||
| 24 | 24 | ||
| 25 | import bb, os, sys | 25 | import bb, os, sys |
| 26 | import subprocess | 26 | import subprocess |
| 27 | from bb import msg, data, event | ||
| 28 | import signal | 27 | import signal |
| 29 | import stat | 28 | import stat |
| 30 | import fcntl | 29 | import fcntl |
| 31 | import copy | 30 | import copy |
| 31 | import logging | ||
| 32 | from bb import msg, data, event | ||
| 33 | |||
| 34 | bblogger = logging.getLogger("BitBake") | ||
| 32 | 35 | ||
| 33 | try: | 36 | try: |
| 34 | import cPickle as pickle | 37 | import cPickle as pickle |
| @@ -1127,6 +1130,11 @@ class RunQueueExecute: | |||
| 1127 | bb.event.worker_pipe = pipeout | 1130 | bb.event.worker_pipe = pipeout |
| 1128 | bb.event.useStdout = False | 1131 | bb.event.useStdout = False |
| 1129 | 1132 | ||
| 1133 | # Child processes should send their messages to the UI | ||
| 1134 | # process via the server process, not print them | ||
| 1135 | # themselves | ||
| 1136 | bblogger.handlers = [bb.event.LogHandler()] | ||
| 1137 | |||
| 1130 | self.rq.state = runQueueChildProcess | 1138 | self.rq.state = runQueueChildProcess |
| 1131 | # Make the child the process group leader | 1139 | # Make the child the process group leader |
| 1132 | os.setpgid(0, 0) | 1140 | os.setpgid(0, 0) |
