History

close stdin to make cmd proc exit

Sigrid Solveig Haflínudóttir committed 5 years ago

Commit 7a98f321 parent e835e8c1 file · +2 −0Browse files

Unified · Split

ext4srv.c+2−0
@@ -850,6 +850,7 @@ note(void *, char *s) · 849 unmodified lines
850850 {
851851 if(strncmp(s, "sys:", 4) != 0){
852852 closeallparts();
853+ close(0);
853854 return 1;
854855 }
855856
@@ -908,6 +909,7 @@ static void · 52 unmodified lines
908909 rend(Srv *)
909910 {
910911 closeallparts();
912+ close(0);
911913 threadexitsall(nil);
912914 }
913915

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t