diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-09-02 21:50:22 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-09-05 12:54:25 +0100 |
commit | e490bc826287b681a62868267bf238843bf5b3c1 (patch) | |
tree | f5fdb7b4e2ee7dc2d2405da1514ee069ca51accb /scripts/runqemu-addptable2image | |
parent | 58c42911d452e57505b08915618723961df5ef89 (diff) | |
download | poky-e490bc826287b681a62868267bf238843bf5b3c1.tar.gz |
bitbake: asyncrpc/client: Fix unix domain socket chdir race issues
The connect_unix() call had a bug where if a relative path to a socket
was passed (which the non-async client always does), and the current
working directory was changed after the initial call, it would fail to
reconnect if it became disconnected, since the socket couldn't be found
relative to the new current working directory.
To work around this, change the socket connection for UNIX domain
sockets to be synchronous and change current working before connecting.
This isn't ideal since the connection could block the entire event loop,
but in practice this shouldn't happen since the socket are local files
anyway.
Help debugging and resolving from Joshua Watt.
(Bitbake rev: 5964bb67bb20df7f411ee0650cf189504a05cf25)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu-addptable2image')
0 files changed, 0 insertions, 0 deletions