Commit 391151e7 authored by Geoff Simmons's avatar Geoff Simmons

bugfix daemonization

parent 6eaac54e
...@@ -53,10 +53,6 @@ ...@@ -53,10 +53,6 @@
#include <sys/types.h> #include <sys/types.h>
#include <pwd.h> #include <pwd.h>
#ifdef HAVE_DAEMON_H
#include "daemon.h"
#endif
#include "vas.h" #include "vas.h"
#include "trackrdrd.h" #include "trackrdrd.h"
...@@ -323,7 +319,7 @@ main(int argc, char * const *argv) ...@@ -323,7 +319,7 @@ main(int argc, char * const *argv)
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
#ifdef HAVE_DAEMON_H #ifdef HAVE_DAEMON
if (!D_flag && daemon(0, 0) == -1) { if (!D_flag && daemon(0, 0) == -1) {
perror("daemon()"); perror("daemon()");
if (pfh != NULL) if (pfh != NULL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment