2016-04-06 10 views
0

上記の違いを説明してください。 "殺す-9" "-0殺す" と"kill -0"と "kill -9"の違いは何ですか?

+1

が、私は、オフトピック男のkill'と 'Googleの男がsignal'を殺す'ので、この質問を閉じるために投票していますがpidにSIGKILLを送信します。 –

+0

私のシステム上で 'man kill'はシグナル0が何をしているのかを言いません。 – Thilo

+0

http://unix.stackexchange.com/questions/169898/what-does-kill-0-do – Thilo

答えて

1

https://unix.stackexchange.com/a/169899/55635

キル(1)

$ man 1 kill 
... 
If sig is 0, then no signal is sent, but error checking is still performed. 
... 

キル(2)信号So 0しません、実際に

$ man 2 kill 
... 
If sig is 0, then no signal is sent, but error checking is still performed; 
this can be used to check for the existence of a process ID or process 
group ID. 
... 

実際にはあなたのプロセスのPIDに何かを送りますが、実際にあなたがそのような権限を持っているかどうかをチェックします。

kill -9ながら - 実際には、あまりにもあり