Avoid pidfile leaking/laying around after server already exited.
Reviewed-by: Daniel Stenberg
Closes #7506
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)
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)
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)