Fix no pid-file on posix systems.

This commit is contained in:
cheatfate 2018-07-06 08:48:14 +03:00
parent 75e6fdaa2b
commit 97345e1877
1 changed files with 2 additions and 0 deletions

View File

@ -102,4 +102,6 @@ elif defined(posix):
quit(QuitFailure)
if posix.dup2(getFileHandle(serr), getFileHandle(stderr)) < 0:
quit(QuitFailure)
if len(pidfile) > 0:
writeFile(pidfile, $pid)
result = 0