summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/server/process.py15
1 files changed, 7 insertions, 8 deletions
diff --git a/bitbake/lib/bb/server/process.py b/bitbake/lib/bb/server/process.py
index 38b923fe2d..ed930c61f4 100644
--- a/bitbake/lib/bb/server/process.py
+++ b/bitbake/lib/bb/server/process.py
@@ -453,15 +453,14 @@ def connectProcessServer(sockname, featureset):
453 cwd = os.getcwd() 453 cwd = os.getcwd()
454 454
455 try: 455 try:
456 os.chdir(os.path.dirname(sockname)) 456 try:
457 sock.connect(os.path.basename(sockname)) 457 os.chdir(os.path.dirname(sockname))
458 finally: 458 sock.connect(os.path.basename(sockname))
459 os.chdir(cwd) 459 finally:
460 460 os.chdir(cwd)
461 readfd = writefd = readfd1 = writefd1 = readfd2 = writefd2 = None
462 eq = command_chan_recv = command_chan = None
463 461
464 try: 462 readfd = writefd = readfd1 = writefd1 = readfd2 = writefd2 = None
463 eq = command_chan_recv = command_chan = None
465 464
466 # Send an fd for the remote to write events to 465 # Send an fd for the remote to write events to
467 readfd, writefd = os.pipe() 466 readfd, writefd = os.pipe()