Commit 2efab69c authored by Geoff Simmons's avatar Geoff Simmons

bugfix daemonization

parent 39a876df
......@@ -53,10 +53,6 @@
#include <sys/types.h>
#include <pwd.h>
#ifdef HAVE_DAEMON_H
#include "daemon.h"
#endif
#include "vas.h"
#include "trackrdrd.h"
......@@ -323,7 +319,7 @@ main(int argc, char * const *argv)
exit(EXIT_FAILURE);
}
#ifdef HAVE_DAEMON_H
#ifdef HAVE_DAEMON
if (!D_flag && daemon(0, 0) == -1) {
perror("daemon()");
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