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