shithub: ext4srv

Download patch

ref: 7a98f323b297c1e108a953bc167a024be402d58a
parent: e835e8c4aa43a5ff2e51959b850323cb150a2725
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Tue Nov 17 07:29:15 EST 2020

close stdin to make cmd proc exit

--- a/ext4srv.c
+++ b/ext4srv.c
@@ -850,6 +850,7 @@
 {
 	if(strncmp(s, "sys:", 4) != 0){
 		closeallparts();
+		close(0);
 		return 1;
 	}
 
@@ -908,6 +909,7 @@
 rend(Srv *)
 {
 	closeallparts();
+	close(0);
 	threadexitsall(nil);
 }