Fix windows PID file
This commit is contained in:
parent
5108d08ac9
commit
578c5dd495
|
@ -54,8 +54,7 @@ class singleinstance:
|
||||||
raise
|
raise
|
||||||
else:
|
else:
|
||||||
pidLine = "%i\n" % self.lockPid
|
pidLine = "%i\n" % self.lockPid
|
||||||
self.fd.write(pidLine)
|
os.write(self.fd, 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