]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
process: Further improve robustness against server shutdown
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 21 Aug 2014 09:27:10 +0000 (10:27 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 21 Aug 2014 23:07:09 +0000 (00:07 +0100)
commitac418e1112ff5f9c3157569316902f7a27fba4b4
tree177ce0ea42562fe9df325021d21d7d2a578e19e9
parenta16185e602b39b71475aa7e9ee80ad2b1f28d0f7
process: Further improve robustness against server shutdown

Currently, if an exception occurs in an event handler, the server shuts
down but the UI simply hangs. This happens in two places, firstly waiting
for events and secondly, sending events to a server which no longer exists.

The latter does time out, the former does not. These patches improve
both code sections to check if the main server process is alive and if not,
trigger things to shut down gracefully. This avoids the timeout in the
command sending case too.

This resolves various cases where the UI would simply hang indefintely.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/server/process.py