tests/*server.py: remove pidfile on server termination
Avoid pidfile leaking/laying around after server already exited. Reviewed-by: Daniel Stenberg Closes #7506
This commit is contained in:
Родитель
4d680e4a8f
Коммит
c34bd93f60
|
@ -188,5 +188,8 @@ if __name__ == '__main__':
|
|||
log.exception(e)
|
||||
rc = ScriptRC.EXCEPTION
|
||||
|
||||
if options.pidfile and os.path.isfile(options.pidfile):
|
||||
os.unlink(options.pidfile)
|
||||
|
||||
log.info("[DICT] Returning %d", rc)
|
||||
sys.exit(rc)
|
||||
|
|
|
@ -364,5 +364,8 @@ if __name__ == '__main__':
|
|||
log.exception(e)
|
||||
rc = ScriptRC.EXCEPTION
|
||||
|
||||
if options.pidfile and os.path.isfile(options.pidfile):
|
||||
os.unlink(options.pidfile)
|
||||
|
||||
log.info("Returning %d", rc)
|
||||
sys.exit(rc)
|
||||
|
|
|
@ -391,5 +391,8 @@ if __name__ == '__main__':
|
|||
log.exception(e)
|
||||
rc = ScriptRC.EXCEPTION
|
||||
|
||||
if options.pidfile and os.path.isfile(options.pidfile):
|
||||
os.unlink(options.pidfile)
|
||||
|
||||
log.info("[SMB] Returning %d", rc)
|
||||
sys.exit(rc)
|
||||
|
|
Загрузка…
Ссылка в новой задаче