summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libutil/pidfile.32
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libutil/pidfile.3 b/lib/libutil/pidfile.3
index 4ae7067..81ccab1 100644
--- a/lib/libutil/pidfile.3
+++ b/lib/libutil/pidfile.3
@@ -100,7 +100,7 @@ The following example shows in which order those functions should be used.
struct pidfh *pfh;
pid_t otherpid, childpid;
-pfh = pidfile_open("/var/run/daemon.pid", 0644, &otherpid);
+pfh = pidfile_open("/var/run/daemon.pid", 0600, &otherpid);
if (pfh == NULL) {
if (errno == EEXIST)
errx(EXIT_FAILURE, "Daemon already running, pid: %d.", otherpid);
OpenPOWER on IntegriCloud