Deleted Added
full compact
kill.2 (84306) kill.2 (108028)
1.\" Copyright (c) 1980, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)kill.2 8.3 (Berkeley) 4/19/94
1.\" Copyright (c) 1980, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)kill.2 8.3 (Berkeley) 4/19/94
33.\" $FreeBSD: head/lib/libc/sys/kill.2 84306 2001-10-01 16:09:29Z ru $
33.\" $FreeBSD: head/lib/libc/sys/kill.2 108028 2002-12-18 09:22:32Z ru $
34.\"
35.Dd April 19, 1994
36.Dt KILL 2
37.Os
38.Sh NAME
39.Nm kill
40.Nd send signal to a process
41.Sh LIBRARY
42.Lb libc
43.Sh SYNOPSIS
44.In sys/types.h
45.In signal.h
46.Ft int
47.Fn kill "pid_t pid" "int sig"
48.Sh DESCRIPTION
49The
50.Fn kill
34.\"
35.Dd April 19, 1994
36.Dt KILL 2
37.Os
38.Sh NAME
39.Nm kill
40.Nd send signal to a process
41.Sh LIBRARY
42.Lb libc
43.Sh SYNOPSIS
44.In sys/types.h
45.In signal.h
46.Ft int
47.Fn kill "pid_t pid" "int sig"
48.Sh DESCRIPTION
49The
50.Fn kill
51function sends the signal given by
51system call sends the signal given by
52.Fa sig
53to
54.Fa pid ,
55a
56process or a group of processes.
57.Fa Sig
58may be one of the signals specified in
59.Xr sigaction 2

--- 43 unchanged lines hidden (view full) ---

103if the process number is negative but not -1,
104the signal is sent to all processes whose process group ID
105is equal to the absolute value of the process number.
106This is a variant of
107.Xr killpg 2 .
108.Sh RETURN VALUES
109.Rv -std kill
110.Sh ERRORS
52.Fa sig
53to
54.Fa pid ,
55a
56process or a group of processes.
57.Fa Sig
58may be one of the signals specified in
59.Xr sigaction 2

--- 43 unchanged lines hidden (view full) ---

103if the process number is negative but not -1,
104the signal is sent to all processes whose process group ID
105is equal to the absolute value of the process number.
106This is a variant of
107.Xr killpg 2 .
108.Sh RETURN VALUES
109.Rv -std kill
110.Sh ERRORS
111.Fn Kill
111The
112.Fn kill
113system call
112will fail and no signal will be sent if:
113.Bl -tag -width Er
114.It Bq Er EINVAL
115.Fa Sig
116is not a valid signal number.
117.It Bq Er ESRCH
118No process can be found corresponding to that specified by
119.Fa pid .

--- 11 unchanged lines hidden (view full) ---

131.Xr getpid 2 ,
132.Xr killpg 2 ,
133.Xr sigaction 2 ,
134.Xr raise 3 ,
135.Xr init 8
136.Sh STANDARDS
137The
138.Fn kill
114will fail and no signal will be sent if:
115.Bl -tag -width Er
116.It Bq Er EINVAL
117.Fa Sig
118is not a valid signal number.
119.It Bq Er ESRCH
120No process can be found corresponding to that specified by
121.Fa pid .

--- 11 unchanged lines hidden (view full) ---

133.Xr getpid 2 ,
134.Xr killpg 2 ,
135.Xr sigaction 2 ,
136.Xr raise 3 ,
137.Xr init 8
138.Sh STANDARDS
139The
140.Fn kill
139function call is expected to conform to
141system call is expected to conform to
140.St -p1003.1-90 .
141.Sh HISTORY
142.St -p1003.1-90 .
143.Sh HISTORY
142A
144The
143.Fn kill
145.Fn kill
144function call appeared in
146function appeared in
145.At v7 .
147.At v7 .