From 6675201bc1aaf7623e5212447835ef02c4ebf7a3 Mon Sep 17 00:00:00 2001 From: Anael Beutot <anael.beutot@smartjog.com> Date: Wed, 23 May 2012 15:09:57 +0200 Subject: [PATCH] Fixed pidfile open in write mode. --- bin/cc-node | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/cc-node b/bin/cc-node index d0002a9..f5a8c17 100755 --- a/bin/cc-node +++ b/bin/cc-node @@ -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 -- GitLab