mirror of
https://github.com/curl/curl.git
synced 2025-04-12 16:20:35 +08:00
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:
parent
4d680e4a8f
commit
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user