ref: 4beeface75e5309cfdc5899446c0a6fd01d0dc0d
parent: 1a2b7039f5b401a67fdee57e4ca31bf90eb44d79
author: Ori Bernstein <[email protected]>
date: Sat Mar 25 22:02:28 EDT 2023
upas/runq: revert b55b1f31e139271852c3581924ddc92a10f54883 this change broke the fix from 49d7ca8d92e5667f3e5ece4c6acbc1064701e2f8
--- a/sys/src/cmd/upas/q/runq.c
+++ b/sys/src/cmd/upas/q/runq.c
@@ -597,7 +597,7 @@
return -1;
}
- switch(rfork(RFFDG|RFPROC|RFENVG)){
+ switch(rfork(RFFDG|RFPROC|RFENVG|RFNOWAIT)){
case -1:
logit("runq - fork failed", w, name, av);
return -1;
@@ -633,7 +633,6 @@
break;
if(write(pfd[1], buf, n) != n){
close(fd);
- waitpid();
return -1;
}
}
@@ -640,7 +639,6 @@
close(fd);
}
close(pfd[1]);
- waitpid();
return 0;
}