Deleted Added
full compact
fork.2 (108087) fork.2 (131504)
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.\" @(#)fork.2 8.1 (Berkeley) 6/4/93
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.\" @(#)fork.2 8.1 (Berkeley) 6/4/93
33.\" $FreeBSD: head/lib/libc/sys/fork.2 108087 2002-12-19 09:40:28Z ru $
33.\" $FreeBSD: head/lib/libc/sys/fork.2 131504 2004-07-02 23:52:20Z ru $
34.\"
35.Dd June 4, 1993
36.Dt FORK 2
37.Os
38.Sh NAME
39.Nm fork
40.Nd create a new process
41.Sh LIBRARY

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

79All interval timers are cleared; see
80.Xr setitimer 2 .
81.El
82.Sh RETURN VALUES
83Upon successful completion,
84.Fn fork
85returns a value
86of 0 to the child process and returns the process ID of the child
34.\"
35.Dd June 4, 1993
36.Dt FORK 2
37.Os
38.Sh NAME
39.Nm fork
40.Nd create a new process
41.Sh LIBRARY

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

79All interval timers are cleared; see
80.Xr setitimer 2 .
81.El
82.Sh RETURN VALUES
83Upon successful completion,
84.Fn fork
85returns a value
86of 0 to the child process and returns the process ID of the child
87process to the parent process. Otherwise, a value of -1 is returned
87process to the parent process.
88Otherwise, a value of -1 is returned
88to the parent process, no child process is created, and the global
89variable
90.Va errno
91is set to indicate the error.
92.Sh ERRORS
93The
94.Fn fork
95system call will fail and no child process will be created if:

--- 42 unchanged lines hidden ---
89to the parent process, no child process is created, and the global
90variable
91.Va errno
92is set to indicate the error.
93.Sh ERRORS
94The
95.Fn fork
96system call will fail and no child process will be created if:

--- 42 unchanged lines hidden ---