summaryrefslogtreecommitdiff
path: root/isisd
diff options
context:
space:
mode:
Diffstat (limited to 'isisd')
-rw-r--r--isisd/isis_main.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/isisd/isis_main.c b/isisd/isis_main.c
index 2411518d..c5e824c1 100644
--- a/isisd/isis_main.c
+++ b/isisd/isis_main.c
@@ -333,8 +333,11 @@ main (int argc, char **argv, char **envp)
return(0);
/* demonize */
- if (daemon_mode)
- daemon (0, 0);
+ if (daemon_mode && daemon (0, 0) < 0)
+ {
+ zlog_err("ISISd daemon failed: %s", strerror(errno));
+ exit (1);
+ }
/* Process ID file creation. */
pid_output (pid_file);