From abf29e934a06493ae69f157b9f660258823a2da9 Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Oct 18 2009 08:11:51 +0000 Subject: - yeah, we actually need to create that pidfile --- diff --git a/src/main.c b/src/main.c index 8bc1bf2..c933aae 100644 --- a/src/main.c +++ b/src/main.c @@ -19,6 +19,7 @@ #include #include +#include #include #include #include @@ -90,7 +91,8 @@ main(int argc, char **argv) } if (pidfile != NULL) { - pfd = open(pidfile, O_RDWR | O_CREAT); + pfd = open(pidfile, O_RDWR | O_CREAT, + S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); if (pfd == -1) { fprintf(stderr, "Error opening pidfile \"%s\": %s\n", pidfile, strerror(errno));