mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 01:19:52 +00:00
bitbake: prserv/serv: Gracefully handle the PR server exiting quickly
If the server exits quickly its PID may no longer exist. Handle this gracefully. (Bitbake rev: c1b00a9265fa4146b8db8b7d03a51bf2bfcf9f51) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -492,7 +492,11 @@ def auto_shutdown():
|
|||||||
PRServerConnection(host, port).terminate()
|
PRServerConnection(host, port).terminate()
|
||||||
except:
|
except:
|
||||||
logger.critical("Stop PRService %s:%d failed" % (host,port))
|
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
|
singleton = None
|
||||||
|
|
||||||
def ping(host, port):
|
def ping(host, port):
|
||||||
|
|||||||
Reference in New Issue
Block a user