How can I detect parent process death in Linux OS?
If in parent process called fork()
, that create child process. In the parent process I can use system call wait()
for waiting terminated child process, and getting its status.
But, I can't find info about how child process can detect parent process' death?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…