diff options
-rw-r--r-- | examples/testd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/testd.c b/examples/testd.c index fde6195..6557dff 100644 --- a/examples/testd.c +++ b/examples/testd.c @@ -70,7 +70,10 @@ int main(int argc, char *argv[]) { } /* Prepare for return value passing from the initialization procedure of the daemon process */ - daemon_retval_init(); + if (daemon_retval_init() < 0) { + daemon_log(LOG_ERR, "Failed to create pipe."); + return 1; + } /* Do the fork */ if ((pid = daemon_fork()) < 0) { |