what happens to child process?
What happens to a child process whose parent process is terminated ab开发者_JAVA技巧ruptly without waiting? Does the child process die too?
The child gets reparented to init
.
No, it becomes 'orphaned' (i.e. its parent becomes init - PID 1).
精彩评论