enamel enamel - 1 year ago 73
Linux Question

abort system call behaviour

I have a parent process which is handling the signal

If I call
in the child process , the
signal is raised in the child process.

My question is , at the time of child process core dumping ,
signal will be sent to parent process or not ?

Answer Source

The SIGCHLD signal is always sent by the (unixoid at least) OS to your process as soon as the child dies - no matter of which reason it dies (because of SIGABRT or SIGSEGV, terminating regularly by calling exit or simply leaving main, ...).

You get some information about what happened in the child in the status variable you provide to the functions of the wait family, a small example you find e. g. here.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download