Hello everybody, this is my first post on this forum. I have a program that has a child process that sleeps for 5 second and exit. I'm suppose to modify this program so that when the child exits, the parent reports the exit status of the child, so I also have to deal with SIGINT and SIGQUIT. Can someone explain to me where I should put my SIGCHLD handler? Any explanation as to how does SIGCHLD work will also be greatly appreciated. Thank you very much.
UlSky