]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Correct return type of pdfork(2).
authored <ed@FreeBSD.org>
Fri, 4 Apr 2014 19:53:45 +0000 (19:53 +0000)
committered <ed@FreeBSD.org>
Fri, 4 Apr 2014 19:53:45 +0000 (19:53 +0000)
commitbf6556bd2d016cf48e5267923d1c46d16533f9a2
tree51c91cf0a1c968643f9fc1af53a9a313476cca0a
parent34954ea5f5abef9d5fc8e3f99e6bbd98132f1923
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.
lib/libc/sys/pdfork.2
sys/sys/procdesc.h