diff options
Diffstat (limited to 'src/daemon.cc')
-rw-r--r-- | src/daemon.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/daemon.cc b/src/daemon.cc index fc42ee7..678a8c9 100644 --- a/src/daemon.cc +++ b/src/daemon.cc @@ -48,9 +48,8 @@ int Daemon::run(uid_t uid, gid_t gid) f = fork(); switch(f) { case -1: // Fork error - fprintf(stderr, "fork() error!\n"); + perror("Fork in daemon.cc"); return 1; - break; case 0: // Forked child if(setgid(gid) != 0) { |