diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-12-13 15:58:15 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2011-01-04 14:46:50 +0000 |
commit | e05d6fa92792829e9bb1d77a4d5edb5382e68ff0 (patch) | |
tree | 815451c7379db9ee3a0eeb3ad34454103bd8ab08 /bitbake | |
parent | 2b7c2a842092fcec1389bc234bec2ef8c3c5973a (diff) | |
download | openembedded-core-e05d6fa92792829e9bb1d77a4d5edb5382e68ff0.tar.gz openembedded-core-e05d6fa92792829e9bb1d77a4d5edb5382e68ff0.tar.bz2 openembedded-core-e05d6fa92792829e9bb1d77a4d5edb5382e68ff0.zip |
build: set PWD in the subprocess preexec hook
(Bitbake rev: efa5485c8f9d488ba058c40734cc55296d3de6eb)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake')
-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 @@ -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): |