Module Name: src
Committed By: christos
Date: Wed Jul 9 16:06:47 UTC 2014
Modified Files:
src/lib/libc/sys: kill.2
Log Message:
mention sig == 0
To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/lib/libc/sys/kill.2
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/sys/kill.2
diff -u src/lib/libc/sys/kill.2:1.21 src/lib/libc/sys/kill.2:1.22
--- src/lib/libc/sys/kill.2:1.21 Sun Jul 13 11:16:26 2008
+++ src/lib/libc/sys/kill.2 Wed Jul 9 12:06:47 2014
@@ -1,4 +1,4 @@
-.\" $NetBSD: kill.2,v 1.21 2008/07/13 15:16:26 dholland Exp $
+.\" $NetBSD: kill.2,v 1.22 2014/07/09 16:06:47 christos Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" @(#)kill.2 8.3 (Berkeley) 4/19/94
.\"
-.Dd April 19, 1994
+.Dd July 9, 2014
.Dt KILL 2
.Os
.Sh NAME
@@ -94,6 +94,14 @@ the signal is sent to all processes whos
is equal to the absolute value of the process number.
This is a variant of
.Xr killpg 3 .
+.Pp
+If
+.Fa sig
+is equal to
+.Dv 0 ,
+then no signal is sent to the process ID or process group ID, but error
+checking is performed.
+This can be used to check if the process ID or process group ID exist.
.Sh RETURN VALUES
Upon successful completion, a value of 0 is returned.
Otherwise, a value of \-1 is returned and