Flush PID file on unix as well
This commit is contained in:
parent
e7382b7714
commit
3e6de7a9ad
|
@ -55,6 +55,7 @@ class singleinstance:
|
|||
else:
|
||||
pidLine = "%i\n" % self.lockPid
|
||||
self.fd.write(pidLine)
|
||||
self.fd.flush()
|
||||
else: # non Windows
|
||||
self.fp = open(self.lockfile, 'w')
|
||||
try:
|
||||
|
|
Reference in New Issue
Block a user