summaryrefslogtreecommitdiffstats
path: root/lib/pid_output.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pid_output.c')
-rw-r--r--lib/pid_output.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/pid_output.c b/lib/pid_output.c
index ae3393c17..11e1243d9 100644
--- a/lib/pid_output.c
+++ b/lib/pid_output.c
@@ -47,12 +47,14 @@ pid_output (const char *path)
umask(oldumask);
return pid;
#else
+ static pid_t pid_output_lock (const char *);
+
return pid_output_lock(path);
#endif /* HAVE_FCNTL */
}
#ifdef HAVE_FCNTL
-pid_t
+static pid_t
pid_output_lock (const char *path)
{
int tmp;
@@ -65,7 +67,6 @@ pid_output_lock (const char *path)
pid = getpid ();
oldumask = umask(0777 & ~LOGFILE_MASK);
- zlog_err( "old umask %d %d", oldumask, 0777 & ~LOGFILE_MASK);
fd = open (path, O_RDWR | O_CREAT, LOGFILE_MASK);
if (fd < 0)
{