Commit 6675201b authored by Anael Beutot's avatar Anael Beutot
Browse files

Fixed pidfile open in write mode.

parent f92f02ce
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ if not isfile(options.config):

# take care of pid file if daemon
if options.daemonize:
    pidfile = open(options.pidfile)
    pidfile = open(options.pidfile, 'w')
    files_preserve = [pidfile]
else:
    files_preserve = None