Does this line of code kill and reap a child process without a kill operation?
waitpid(pid,&cs,0);
Or, must it be in this format to kill and reap a process?
kill(pid,SIGTERM);
waitpid(pid,&cs,0);
Does this line of code kill and reap a child process without a kill operation?
waitpid(pid,&cs,0);
Or, must it be in this format to kill and reap a process?
kill(pid,SIGTERM);
waitpid(pid,&cs,0);