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