Answers for "What causes a defunct process on the Linux system and how can you avoid it?"

1

What causes a defunct process on the Linux system and how can you avoid it?

When you create a process, it sticks around until its parent reaps it. 
(If its parent exits first, it will get auto-reaped.) A process can reap
its children using wait or waitpid. It can also cause it's children to 
be automatically reaped by using local $SIG{CHLD} = 'IGNORE'; before 
creating the child.
Posted by: Guest on September-14-2020

Code answers related to "What causes a defunct process on the Linux system and how can you avoid it?"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language