diff options
Diffstat (limited to '')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -33,9 +33,7 @@ #include <errno.h> #include <signal.h> #include <unistd.h> -#ifdef HAVE_STDINT_H #include <stdint.h> -#endif #include <sys/socket.h> #include <sys/types.h> #include <netinet/in.h> @@ -156,7 +154,7 @@ run(struct iperf_test *test) case 's': if (test->daemon) { int rc; - rc = daemon(0, 0); + rc = daemon(1, 0); if (rc < 0) { i_errno = IEDAEMON; iperf_errexit(test, "error - %s", iperf_strerror(i_errno)); |