基本上,“0”代表什么信号,因为here http://lxr.linux.no/linux+v2.6.16.60/include/asm-i386/signal.h#L34我看到信号编号从 1 开始。
发送信号0
对给定的PID
只是检查是否有给定的进程PID
正在运行,并且您有权向其发送信号。
有关详细信息,请参阅以下联机帮助页:
kill(1)
$ man 1 kill
...
If sig is 0, then no signal is sent, but error checking is still performed.
...
kill(2)
$ 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.
...
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)