diff options
author | ed <ed@FreeBSD.org> | 2014-04-04 19:53:45 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2014-04-04 19:53:45 +0000 |
commit | bf6556bd2d016cf48e5267923d1c46d16533f9a2 (patch) | |
tree | 51c91cf0a1c968643f9fc1af53a9a313476cca0a /sys/sys/procdesc.h | |
parent | 34954ea5f5abef9d5fc8e3f99e6bbd98132f1923 (diff) | |
download | FreeBSD-src-bf6556bd2d016cf48e5267923d1c46d16533f9a2.zip FreeBSD-src-bf6556bd2d016cf48e5267923d1c46d16533f9a2.tar.gz |
Correct return type of pdfork(2).
The pdfork(2) man page states:
"pdfork() returns a PID, 0 or -1, as fork(2) does."
As it returns a PID, the return type should obviously be pid_t. As int
and pid_t have the same size on all architectures, this change does not
affect the ABI in any way.
Diffstat (limited to 'sys/sys/procdesc.h')
-rw-r--r-- | sys/sys/procdesc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/procdesc.h b/sys/sys/procdesc.h index 4d77a05..4586bdd 100644 --- a/sys/sys/procdesc.h +++ b/sys/sys/procdesc.h @@ -105,7 +105,7 @@ void procdesc_reap(struct proc *); * Process descriptor system calls. */ struct rusage; -int pdfork(int *, int); +pid_t pdfork(int *, int); int pdkill(int, int); int pdgetpid(int, pid_t *); |