[Linux][kill] – 檢查 pid 是否有在運作

Linux 下检查 PID 是否存在

  1. kill -0 pid

对于信号“0”的解释:exit code indicates if a signal may be sent

C 语言里就是

  1. kill (pid, 0)

Filed under C, Linux · Tagged with

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!