From 3e6de7a9ad10a14d1289f913b6ef0a4358578438 Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Fri, 28 Jul 2017 19:21:56 +0200 Subject: [PATCH] Flush PID file on unix as well --- src/singleinstance.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/singleinstance.py b/src/singleinstance.py index d6337ff6..8a7fb68e 100644 --- a/src/singleinstance.py +++ b/src/singleinstance.py @@ -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: