Skip to content

Commit

Permalink
call openlog()
Browse files Browse the repository at this point in the history
  • Loading branch information
em1lyy committed Feb 3, 2021
1 parent 6d0c257 commit 2a3f49a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kanrisha.c
Original file line number Diff line number Diff line change
Expand Up @@ -580,10 +580,14 @@ int restart_serv(char servname[]) {
}

int rundaemon() {
/* setup child watcher */
if (signal(SIGCHLD, sigchld_handler) == SIG_ERR) {
sys_perror("rundaemon(): signal");
}

/* init system logging stuff */
openlog("kanrisha", LOG_NOWAIT | LOG_PID, LOG_DAEMON);

/* init fifo */
mkfifo(CMDFIFOPATH, 0620);

Expand Down

0 comments on commit 2a3f49a

Please sign in to comment.