I need to handle SIGCHLD correctly. How to use it in existing code. Currently I cannot wait for the child process unless I use 0 instead of WNOHANG | WUNTRACED.
status = 0;
pid_t child, end
I need to handle SIGCHLD correctly. How to use it in existing code. Currently I cannot wait for the child process unless I use 0 instead of WNOHANG | WUNTRACED.
status = 0;
pid_t child, end