shithub: riscv

Download patch

ref: 6fa3e08412c49a188e2abe7d9ee54cd1f37a85f5
parent: 45afecffd1849f8ae6672a389bb430779afce9e3
author: mischief <[email protected]>
date: Wed Sep 19 09:27:55 EDT 2018

cfs: close mount half of pipe, fixes cfs not exiting when unmounted

--- a/sys/src/cmd/cfs/cfs.c
+++ b/sys/src/cmd/cfs/cfs.c
@@ -257,6 +257,7 @@
 		error("pipe failed");
 	switch(fork()){
 	case 0:
+		close(p[1]);
 		break;
 	default:
 		if (noauth)