From e05d6fa92792829e9bb1d77a4d5edb5382e68ff0 Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Mon, 13 Dec 2010 15:58:15 -0700 Subject: build: set PWD in the subprocess preexec hook (Bitbake rev: efa5485c8f9d488ba058c40734cc55296d3de6eb) Signed-off-by: Chris Larson Signed-off-by: Richard Purdie --- bitbake/lib/bb/process.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'bitbake/lib/bb') 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): -- cgit v1.2.3-54-g00ecf