diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-12-18 10:49:15 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2010-12-18 10:49:15 -0700 |
commit | c3aec3e887d32ab361e5b6d864679adb135b5786 (patch) | |
tree | e668a9565685ce167cd6a6f169ac7c963542635a /lib/bb/server/process.py | |
parent | 8672abb230dc78c9dec0731bfbabf53a3a7c9f8f (diff) | |
download | openembedded-core-contrib-c3aec3e887d32ab361e5b6d864679adb135b5786.tar.gz |
Revert "server: kill stdin/stdout/stderr"
This is a useful thing, but requires that tasks behave correctly, sending
their output via the usual bitbake messaging mechanisms, rather than via
stdout. We'll postpone this until after the release.
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/server/process.py')
-rw-r--r-- | lib/bb/server/process.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/bb/server/process.py b/lib/bb/server/process.py index 78fa5be3f1..2799348493 100644 --- a/lib/bb/server/process.py +++ b/lib/bb/server/process.py @@ -22,7 +22,6 @@ import logging import signal -import sys import time import bb import bb.event @@ -30,7 +29,6 @@ from multiprocessing import Process, Event from bb.cooker import BBCooker logger = logging.getLogger('BitBake') -NULL = open('/dev/null', 'r+') class ServerCommunicator(): def __init__(self, connection): @@ -90,13 +88,6 @@ class ProcessServer(Process): self._idlefunctions[function] = data def run(self): - """Run the server, killing off stdin/stdout/stderr""" - with bb.utils.redirected_fds([sys.stdin, sys.stdout, sys.stderr], - [NULL, NULL, NULL]): - return self.main() - - def main(self): - """Server main loop""" # Ignore SIGINT within the server, as all SIGINT handling is done by # the UI and communicated to us signal.signal(signal.SIGINT, signal.SIG_IGN) |