Quote:
Originally Posted by matrixmadhan
Why is that?
Then possibly that should be a bug with respect to the parent which refuses to reap the exit status and process statistics of the child.
Or never receives the dead of child signal.
This is most likely to obtain for orocess which are started, to put it simple, with the nohup option. When the initional "httpd" daemon dies, parenthood for all child "httpd" daemons is passed over to the "init" process.
This is bug sensitive.
Therefore a kill, as shown, will more likely cause zombie processes since the order in which the "httpd" daemons are killed is random meaning the parent "httpd" is almost for sure killed before at least some of the "httpd" child processes.
Furthermore a "kill -9" might result in a not proper cleaning of the resources which are used by the process. When killing enough processes like that, at some stage the system will end up with an internal chaos which can cause all kind of unexpected/unwanted behavior like zombie processes starting to occur.
The "kill -9" is meant for when all other options fail, and surely not as first option.