iostats: dup 9p pipe to both fd 0 and fd 1 for exportfs

This commit is contained in:
cinap_lenrek 2020-12-13 20:23:03 +01:00
parent 08a9a6952d
commit 32291b52bc

View file

@ -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]);