Write current PID to ~/.offlineimap/pid
fixes deb#217550 refs deb#410181
This commit is contained in:
parent
253e0143a8
commit
acc597ff28
@ -102,6 +102,13 @@ def startup(versionno):
|
|||||||
|
|
||||||
lock(config, ui)
|
lock(config, ui)
|
||||||
|
|
||||||
|
try:
|
||||||
|
pidfd = open(config.getmetadatadir() + "/pid", "w")
|
||||||
|
pidfd.write(os.getpid())
|
||||||
|
pidfd.close()
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if options.has_key('-l'):
|
if options.has_key('-l'):
|
||||||
sys.stderr = ui.logfile
|
sys.stderr = ui.logfile
|
||||||
|
Loading…
Reference in New Issue
Block a user