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?
-a
···
–
====================================
Ara Howard
NOAA Forecast Systems Laboratory
Information and Technology Services
Data Systems Group
R/FST 325 Broadway
Boulder, CO 80305-3328
Email: ahoward@fsl.noaa.gov
Phone: 303-497-7238
Fax: 303-497-7259
====================================
$ uname -a
FreeBSD uriel.jijo.segment7.net 4.7-STABLE FreeBSD 4.7-STABLE #2: Wed Jan 22 18:02:24 PST 2003 root@uriel.jijo.segment7.net:/usr/obj/disks/src/stable/sys/URIEL i386
$ 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’').
···
ahoward (ahoward@fsl.noaa.gov) wrote:
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?
–
Eric Hodel - drbrain@segment7.net - http://segment7.net
All messages signed with fingerprint:
FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04