From 141abfdf5066ecaed37742d6985ef4834b1cafa0 Mon Sep 17 00:00:00 2001 From: Nicolas Sebrecht Date: Tue, 26 Apr 2016 23:49:45 +0200 Subject: [PATCH] don't write a pid file This was likely used to avoid multiple instances but this is supported for several years. Signed-off-by: Nicolas Sebrecht --- offlineimap/init.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/offlineimap/init.py b/offlineimap/init.py index 636db5d..6803fd8 100644 --- a/offlineimap/init.py +++ b/offlineimap/init.py @@ -323,13 +323,6 @@ class OfflineImap: self.config is supposed to have been correctly initialized already.""" - try: - pidfd = open(self.config.getmetadatadir() + "/pid", "w") - pidfd.write(str(os.getpid()) + "\n") - pidfd.close() - except: - pass - try: # Honor CLI --account option, only. # Accounts to sync are put into syncaccounts variable.