summaryrefslogtreecommitdiff
path: root/lib/daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/daemon.c')
-rw-r--r--lib/daemon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/daemon.c b/lib/daemon.c
index d8380106..e73a74f1 100644
--- a/lib/daemon.c
+++ b/lib/daemon.c
@@ -35,7 +35,7 @@ daemon (int nochdir, int noclose)
/* In case of fork is error. */
if (pid < 0)
{
- perror ("fork");
+ zlog_err ("fork failed: %s", safe_strerror(errno));
return -1;
}
@@ -48,7 +48,7 @@ daemon (int nochdir, int noclose)
if (pid == -1)
{
- perror ("setsid");
+ zlog_err ("setsid failed: %s", safe_strerror(errno));
return -1;
}