
kill '-SIGHUP', pgid -vs- kill 'SIGHUP', 0
Quote:
> AFAIK
> Process.kill '-SIGHUP', Process.getpgrp
> should be equivalent to
> Process.kill 'SIGHUP', 0
> but i'm not sure if this would always (say in solaris) be the case. is one
> preferred or more portable?
$ uname -a
$ man 2 kill
...
If pid is greater than zero:
Sig is sent to the process whose ID is equal to pid.
If pid is zero:
Sig is sent to all processes whose group ID is equal to the pro-
cess group ID of the sender, and for which the process has per-
mission; this is a variant of killpg(2).
If pid is -1:
If the user has super-user privileges, the signal is sent to all
processes excluding system processes (with P_SYSTEM flag set),
process with ID 1 (usually init(8)), and the process sending the
signal. If the user is not the super user, the signal is sent to
all processes with the same uid as the user excluding the process
sending the signal. No error is returned if any process could be
signaled.
...
STANDARDS
The kill() function call is expected to conform to ISO/IEC 9945-1:1990
(``POSIX.1'').
--
All messages signed with fingerprint:
FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04
|
|
application_pgp-signature_part
< 1K
Download
|