Fix a bug preventing the pid file from being empty.
Convert os.getpid() to a string before writing it to the pid file in order to avoid generating an empty pid file.
This commit is contained in:
parent
b267fd25a6
commit
04a6270058
@ -133,7 +133,7 @@ def startup(versionno):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
pidfd = open(config.getmetadatadir() + "/pid", "w")
|
pidfd = open(config.getmetadatadir() + "/pid", "w")
|
||||||
pidfd.write(os.getpid())
|
pidfd.write(str(os.getpid()) + "\n")
|
||||||
pidfd.close()
|
pidfd.close()
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
Loading…
x
Reference in New Issue
Block a user