shithub: riscv

Download patch

ref: 32291b52bcbd6976051acff1692b571e321ac859
parent: 08a9a6952dfa9ace5b4ae6fa1614c97d4a945ece
author: cinap_lenrek <[email protected]>
date: Sun Dec 13 15:23:03 EST 2020

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

--- a/sys/src/cmd/iostats.c
+++ b/sys/src/cmd/iostats.c
@@ -354,6 +354,7 @@
 		sysfatal("fork: %r");
 	case 0:
 		dup(efd[0], 0);
+		dup(efd[0], 1);
 		close(efd[0]);
 		close(efd[1]);
 		close(pfd[1]);