iostats: isolate fs from interrupt notes
interrupt notes go to the child process, not the filesystem and filter process.
This commit is contained in:
parent
4f45a40334
commit
686cf0b0f3
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue