diff options
| -rw-r--r-- | bitbake/lib/bb/process.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bitbake/lib/bb/process.py b/bitbake/lib/bb/process.py index b022e4c8f9..1c790658c9 100644 --- a/bitbake/lib/bb/process.py +++ b/bitbake/lib/bb/process.py | |||
| @@ -1,14 +1,15 @@ | |||
| 1 | import subprocess | 1 | import os |
| 2 | import signal | ||
| 3 | import logging | 2 | import logging |
| 3 | import signal | ||
| 4 | import subprocess | ||
| 4 | 5 | ||
| 5 | logger = logging.getLogger('BitBake.Process') | 6 | logger = logging.getLogger('BitBake.Process') |
| 6 | 7 | ||
| 7 | def subprocess_setup(): | 8 | def subprocess_setup(): |
| 8 | # Python installs a SIGPIPE handler by default. This is usually not what | 9 | # Python installs a SIGPIPE handler by default. This is usually not what |
| 9 | # non-Python subprocesses expect. | 10 | # non-Python subprocesses expect. |
| 10 | print('in preexec hook') | ||
| 11 | signal.signal(signal.SIGPIPE, signal.SIG_DFL) | 11 | signal.signal(signal.SIGPIPE, signal.SIG_DFL) |
| 12 | os.environ['PWD'] = os.getcwd() | ||
| 12 | 13 | ||
| 13 | class CmdError(RuntimeError): | 14 | class CmdError(RuntimeError): |
| 14 | def __init__(self, command): | 15 | def __init__(self, command): |
