diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:27:01 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:27:01 +0000 |
commit | 6f4c2968d9a035183d937cb055aec739c05280b1 (patch) | |
tree | 3e3270402258677b8ceb7f0db4c68e2123371d97 /src/main.c | |
parent | Adding upstream version 3.16. (diff) | |
download | iperf3-6f4c2968d9a035183d937cb055aec739c05280b1.tar.xz iperf3-6f4c2968d9a035183d937cb055aec739c05280b1.zip |
Adding upstream version 3.17.1.upstream/3.17.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/main.c')
-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)); |