Terminating zombie child processes forked from socket server

后端 未结 4 2052
攒了一身酷
攒了一身酷 2021-02-05 10:37

Disclaimer

I am well aware that PHP might not have been the best choice in this case for a socket server. Please refrain from suggesting differen

4条回答
  •  名媛妹妹
    2021-02-05 11:04

    I know only too well how hard you have to search for a solution to the problem of zombie processes. My concern with potentially having hundreds or thousands of them was (rightly or wrongly as I don't know if this would actualy be a problem) running out of inodes, as all hell can break loose when that happens.

    If only the pcntl_fork() manual page linked to posix-setsid() many of us would have discovered the solution was so simple years ago.

提交回复
热议问题