summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2014-08-02 18:45:19 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2014-08-02 18:45:19 +0200
commit686cf0b0f389015801220eba102fd55e695e017d (patch)
tree995ae4d8800096e33a05906b5e2ddf1b13dae33c
parent4f45a403344037b0931d921ab8cd4b428f630a7e (diff)
iostats: isolate fs from interrupt notes
interrupt notes go to the child process, not the filesystem and filter process.
-rw-r--r--sys/src/cmd/iostats.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/src/cmd/iostats.c b/sys/src/cmd/iostats.c
index a2eadd3f7..022eb16c9 100644
--- a/sys/src/cmd/iostats.c
+++ b/sys/src/cmd/iostats.c
@@ -300,7 +300,7 @@ main(int argc, char **argv)
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 @@ main(int argc, char **argv)
close(pfd[0]);
}
+ /* isolate us from interrupts */
+ rfork(RFNOTEG);
switch(fspid = fork()) {
default:
while(cpid != waitpid())