summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2020-12-13 20:23:03 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2020-12-13 20:23:03 +0100
commit32291b52bcbd6976051acff1692b571e321ac859 (patch)
treee4ca09e660091a59c77df9e9eecd28dcdd210a99
parent08a9a6952dfa9ace5b4ae6fa1614c97d4a945ece (diff)
downloadplan9front-32291b52bcbd6976051acff1692b571e321ac859.tar.xz
iostats: dup 9p pipe to both fd 0 and fd 1 for exportfs
-rw-r--r--sys/src/cmd/iostats.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/src/cmd/iostats.c b/sys/src/cmd/iostats.c
index e61a7ff94..421f531a9 100644
--- a/sys/src/cmd/iostats.c
+++ b/sys/src/cmd/iostats.c
@@ -354,6 +354,7 @@ main(int argc, char **argv)
sysfatal("fork: %r");
case 0:
dup(efd[0], 0);
+ dup(efd[0], 1);
close(efd[0]);
close(efd[1]);
close(pfd[1]);