What happens to a child process whose parent process is terminated abruptly without waiting? Does the child process die too?
Asked
Active
Viewed 1,789 times
9
-
How to make child process die after parent exits? See http://stackoverflow.com/questions/284325/how-to-make-child-process-die-after-parent-exits – Klas Lindbäck Jul 29 '15 at 07:50
2 Answers
13
The child gets reparented to init
.

Ignacio Vazquez-Abrams
- 776,304
- 153
- 1,341
- 1,358
-
And, to add to this, that means you need not fear about it walking as a living dead (zombie), because init waitpids. – Damon Apr 16 '11 at 23:14