linux - Is SIGCHLD dispatched on SIGTERM? -


the wikipedia page sigchld says:

the sigchld signal sent parent of child process when exits, is interrupted, or resumes after being interrupted.

does mean when parent process sends signal (such sigterm) child process, in turn receive sigchld child?

or misinterpret interrupt (i assume mean any signal received), in case, signals concerned?

a sigchld delivered parent in these cases:

  • the child process exits.
  • the child process stopped sigstop, sigtstp, sigttin or sigttou signal
  • the child process resumed sigcont signal

i presume sigstop/sigcont wikipedia means "interrupted".

the default handler sigterm terminate process. if parent sends sigterm child process terminates child, yes - parent receive sigchld.

if child installs signal handler not terminate it, there no sigchld signal delivered parent.


Comments

Popular posts from this blog

c++ - Linked List error when inserting for the last time -

java - activate/deactivate sonar maven plugin by profile? -

java - What is the difference between String. and String.this. ? -