summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/daemon/dlt-daemon.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/daemon/dlt-daemon.c b/src/daemon/dlt-daemon.c
index 6c1d070..016b2c9 100644
--- a/src/daemon/dlt-daemon.c
+++ b/src/daemon/dlt-daemon.c
@@ -1442,6 +1442,11 @@ void dlt_daemon_daemonize(int verbose)
close(fd);
}
+ else
+ {
+ dlt_log(LOG_CRIT, "Error opening /dev/null, exiting DLT daemon\n");
+ exit(-1); /* fork error */
+ }
/* Set umask */
umask(DLT_DAEMON_UMASK);