mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01: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()
|
||||
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):
|
||||
|
||||
Reference in New Issue
Block a user