diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-09-18 11:49:28 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-09-18 11:52:03 +0100 |
commit | f040c38f0590fc8aaf3f2d6aa4a023872b7174d1 (patch) | |
tree | 52f7d52e7cf3c195a7aa3562ba12cb6edc584ae3 /bitbake/lib/hashserv/server.py | |
parent | 7c084c2513d8028e2c1cd6a3a7b749caf2b3aa9f (diff) | |
download | poky-f040c38f0590fc8aaf3f2d6aa4a023872b7174d1.tar.gz |
bitbake: hashserv fixup
(Bitbake rev: b31de77665851fd1745ced8aa0abc26df7b4ea9a)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/hashserv/server.py')
-rw-r--r-- | bitbake/lib/hashserv/server.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/hashserv/server.py b/bitbake/lib/hashserv/server.py index 0ffc83c13d..cddf8ebd1f 100644 --- a/bitbake/lib/hashserv/server.py +++ b/bitbake/lib/hashserv/server.py | |||
@@ -365,8 +365,11 @@ class Server(object): | |||
365 | def cleanup(): | 365 | def cleanup(): |
366 | os.unlink(path) | 366 | os.unlink(path) |
367 | 367 | ||
368 | # Work around path length limits in AF_UNIX | ||
369 | os.chdir(os.path.dirname(path)) | ||
370 | |||
368 | self.server = self.loop.run_until_complete( | 371 | self.server = self.loop.run_until_complete( |
369 | asyncio.start_unix_server(self.handle_client, path, loop=self.loop) | 372 | asyncio.start_unix_server(self.handle_client, os.path.basename(path), loop=self.loop) |
370 | ) | 373 | ) |
371 | logger.info('Listening on %r' % path) | 374 | logger.info('Listening on %r' % path) |
372 | 375 | ||