python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
How waitpid is better than wait when multiple SIGCHLDs are raised simultaneously?
In the book "Unix network programming, Volume 1" by Richard Stevens, in the section "Difference between wait vs waitpid", it says waitpid() should be used intead of wait(). I under...
Jayanth
Votes: 0
Answers: 1
Fork() and execv() not running in parallel, why?
I'm trying to run a series of commands through execv() and forking a new process in C to run each one, and yet for some reason they aren't running in parallel. The following code is run for each proce...
Fathom820
Votes: 0
Answers: 1
waiting once after sending kill signal to multiple processes?
So I'm working on a project for one of my programming classes, and part of this assignment is about being able to launch process in the background, and being able to kill them when the user types &quo...
TheEpicPotato
Votes: 0
Answers: 1
How to interpret process termination status issued by waitpid function
I am debugging the following code :
if(0 == (pid = fork()))
{
if(-1 == execv(p_Command[0], (char **)p_Command))
{
ret = -1;
printf("Fork error on command '%s'", (null...
honoju
Votes: 0
Answers: 1