Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to recognize which child process has just died

Status
Not open for further replies.

wookie2

Programmer
Mar 23, 2004
6
GB
Hi!

The piece of software I'm working on now needs to fork child processes and execute different programs (which terminate themselves). Also, some child processes need to be killed/stopped/resumed and action needs to be taken when a child is terminated. When the parent receives & traps the SIGCLD signal, how does it know which child it is regarding and whether it has been ended, terminated, stopped or resumed.

In brief, I need the information, which in C signal handling is accessible via the siginfo_t structure.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top