From 32291b52bcbd6976051acff1692b571e321ac859 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sun, 13 Dec 2020 20:23:03 +0100 Subject: [PATCH] iostats: dup 9p pipe to both fd 0 and fd 1 for exportfs --- sys/src/cmd/iostats.c | 1 + 1 file changed, 1 insertion(+) 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]);