ref: 9f49fa95a2d2ec98d477d274f7343a2cacc27492
parent: 6e70be1c167b1182695548d7c55a2ce3a857f5f8
author: cinap_lenrek <cinap_lenrek@felloff.net>
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())
--
⑨