When can a child process break away from it's parent and how to prevent it
I have Qmail installed on a number of systems and every now and then some processes break away from their parents (using supervise scripts). Killing all processes and restarting qmail restores the order, but i'd rather prevent it from happening. So my question is:
Where can i find detailed technical information on how this occurs
Why does this happen and what can i do to prevent this.
One thing i noticed is that it usually happens on relatively high loads.
Linux DistributionsLinuxEmail Servers
Last Comment
arnold
8/22/2022 - Mon
arnold
The issue could be that the parent exited and was restarted. In this scenario, the parent process abandoned the child process.
Which child process?
You could setup a cron job that would check for a child process that has 1 as the parent id. Once such process is found, terminate it.
Xyptilon2
ASKER
It appears to happen only when the server is busy and there are more than the allowed number of concurrent connections on qmail-popup. Currently this limit appears to be 40.. is this hardcoded somewhere?
Which child process?
You could setup a cron job that would check for a child process that has 1 as the parent id. Once such process is found, terminate it.