iostats: isolate fs from interrupt notes

interrupt notes go to the child process, not the filesystem
and filter process.
This commit is contained in:
cinap_lenrek 2014-08-02 18:45:19 +02:00
parent 4f45a40334
commit 686cf0b0f3

View file

@ -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())