Remove a call to daemon now that it has been removed from Fuchsia's libc
Change-Id: Icb8759da7c98d04703cbaa44c3ae5c6cbfeb98e6
diff --git a/src/main.c b/src/main.c
index e3c672a..24b325d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -137,7 +137,12 @@
switch (test->role) {
case 's':
if (test->daemon) {
- int rc = daemon(0, 0);
+ // TODO(kulakowski) Change this to use a
+ // Fuchsia-idiomatic way to go to the
+ // background. Relying on something with fork()-style
+ // semantics (like the daemon(3) call that used to be
+ // here) won't work.
+ int rc = -1;
if (rc < 0) {
i_errno = IEDAEMON;
iperf_errexit(test, "error - %s", iperf_strerror(i_errno));