Let's remember to remove the pidFile.

This commit is contained in:
Jeremy Fincher 2004-04-19 16:08:03 +00:00
parent ca9f696c8c
commit 850fdf26a8

View File

@ -300,6 +300,9 @@ if __name__ == '__main__':
pid = os.getpid()
fd.write('%s\n' % pid)
fd.close()
def removePidFile():
os.remove(pidFile)
atexit.register(removePidFile)
except EnvironmentError, e:
log.error('Error opening pid file %s: %s', pidFile, e)