shithub: riscv

Download patch

ref: 686cf0b0f389015801220eba102fd55e695e017d
parent: 4f45a403344037b0931d921ab8cd4b428f630a7e
author: cinap_lenrek <[email protected]>
date: Sat Aug 2 14:45:19 EDT 2014

iostats: isolate fs from interrupt notes

interrupt notes go to the child process, not the filesystem
and filter process.

--- a/sys/src/cmd/iostats.c
+++ b/sys/src/cmd/iostats.c
@@ -300,7 +300,7 @@
 		if(getwd(buf, sizeof(buf)) == 0)
 			sysfatal("no working directory");
 
-		rfork(RFENVG|RFNAMEG|RFNOTEG);
+		rfork(RFENVG|RFNAMEG);
 
 		if(mount(pfd[0], -1, "/", mflag, "") < 0)
 			sysfatal("mount /");
@@ -320,6 +320,8 @@
 		close(pfd[0]);
 	}
 
+	/* isolate us from interrupts */
+	rfork(RFNOTEG);
 	switch(fspid = fork()) {
 	default:
 		while(cpid != waitpid())