From: Eric Hodel Date: 2003-02-05T15:31:31+09:00 Subject: Re: kill '-SIGHUP', pgid -vs- kill 'SIGHUP', 0 --TdkiTnkLhLQllcMS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable ahoward (ahoward@fsl.noaa.gov) wrote: >=20 >=20 > AFAIK >=20 > Process.kill '-SIGHUP', Process.getpgrp >=20 > should be equivalent to >=20 > Process.kill 'SIGHUP', 0 >=20 > but i'm not sure if this would always (say in solaris) be the case. is o= ne > preferred or more portable? $ uname -a FreeBSD uriel.jijo.segment7.net 4.7-STABLE FreeBSD 4.7-STABLE #2: Wed Jan 2= 2 18:02:24 PST 2003 root@uriel.jijo.segment7.net:/usr/obj/disks/src/sta= ble/sys/URIEL i386 $ man 2 kill =2E.. 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 pr= o- 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 a= ll processes excluding system processes (with P_SYSTEM flag set), process with ID 1 (usually init(8)), and the process sending t= he 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 proc= ess sending the signal. No error is returned if any process could= be signaled. =2E.. STANDARDS The kill() function call is expected to conform to ISO/IEC 9945-1:1990 (``POSIX.1''). --=20 Eric Hodel - drbrain@segment7.net - http://segment7.net All messages signed with fingerprint: FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04 --TdkiTnkLhLQllcMS Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQE+QK/BMypVHHlsnwQRAv85AKDoWjNoWcVV2WpGUlvJuzS7slsw/QCeKBgF r1p8ygP55fNJVB1Z0rHJ0B8= =otSF -----END PGP SIGNATURE----- --TdkiTnkLhLQllcMS--