Network programming (four)-sub-process exit processing method

1. Interrupted system call

Insert picture description here

2. Signals are not queued

Insert picture description here

3. The child process exits

Because the signal is not queued, when multiple child processes exit at the same time, the signal processing function may only be executed once (because during the execution of the processing function, several other exit signals arrive, but they cannot be queued and discarded), so only recycle at this time If the resources of one child process are removed, several other child processes have become zombie processes
:
Insert picture description here

Guess you like

Origin blog.csdn.net/chengcheng1024/article/details/115251006