[oe-commits] [bitbake] 10/17: prserv/serv: Gracefully handle the PR server exiting quickly

git at git.openembedded.org git at git.openembedded.org
Thu Aug 31 16:56:17 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository bitbake.

commit c1b00a9265fa4146b8db8b7d03a51bf2bfcf9f51
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Thu Aug 31 17:23:16 2017 +0100

    prserv/serv: Gracefully handle the PR server exiting quickly
    
    If the server exits quickly its PID may no longer exist. Handle
    this gracefully.
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/prserv/serv.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/prserv/serv.py b/lib/prserv/serv.py
index dfcbd20..6a99728 100644
--- a/lib/prserv/serv.py
+++ b/lib/prserv/serv.py
@@ -492,7 +492,11 @@ def auto_shutdown():
             PRServerConnection(host, port).terminate()
         except:
             logger.critical("Stop PRService %s:%d failed" % (host,port))
-        os.waitpid(singleton.prserv.pid, 0)
+
+        try:
+            os.waitpid(singleton.prserv.pid, 0)
+        except ChildProcessError:
+            pass
         singleton = None
 
 def ping(host, port):

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list