: 在程式中以fork 出一個child process,
: 我想在parent process kill 這一個child process
: 我使用kill(child_pid, SIGKILL);來殺掉.
: 但是用ps來看時,出現
: PID TT STAT COMMAND
: 1051 v0 Z+ (TEST)
: 這樣子是有殺乾淨嗎?
parent process 應該去"回收" 他
try wait / waitpid ()
--
好久沒寫程式了,有錯請戳
--
※ 來源:‧四百年來第一站 firebird.cs.ccu.edu.tw‧[FROM: 218-163-210-183]
【 在 Lancelot (藍斯洛特) 的大作中提到: 】