summaryrefslogtreecommitdiffstats
path: root/lib/bb/process.py
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-12-13 15:58:15 -0700
committerChris Larson <chris_larson@mentor.com>2010-12-13 15:58:15 -0700
commitefa5485c8f9d488ba058c40734cc55296d3de6eb (patch)
tree204de62fb436ecbd6823cb45462f965fc1b877fb /lib/bb/process.py
parentab831e867f09b47001cb8da2f8f060e04febf237 (diff)
downloadbitbake-efa5485c8f9d488ba058c40734cc55296d3de6eb.tar.gz
build: set PWD in the subprocess preexec hook
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/process.py')
-rw-r--r--lib/bb/process.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/bb/process.py b/lib/bb/process.py
index b022e4c8f..1c790658c 100644
--- a/lib/bb/process.py
+++ b/lib/bb/process.py
@@ -1,14 +1,15 @@
-import subprocess
-import signal
+import os
import logging
+import signal
+import subprocess
logger = logging.getLogger('BitBake.Process')
def subprocess_setup():
# Python installs a SIGPIPE handler by default. This is usually not what
# non-Python subprocesses expect.
- print('in preexec hook')
signal.signal(signal.SIGPIPE, signal.SIG_DFL)
+ os.environ['PWD'] = os.getcwd()
class CmdError(RuntimeError):
def __init__(self, command):