]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix the child's return path from fork so that fork will return 0
authorgallatin <gallatin@FreeBSD.org>
Fri, 27 Aug 1999 14:47:23 +0000 (14:47 +0000)
committergallatin <gallatin@FreeBSD.org>
Fri, 27 Aug 1999 14:47:23 +0000 (14:47 +0000)
commitffd6399600ecf9973a8a8202ef1d2c969dfb7c42
treef46f29d67777422e04729c58f93a593f434d024c
parenta1c1e7ab1acb9391452e3aa983d7bc436400b359
Fix the child's return path from fork so that fork will return 0
in the child.  This corrects a problem where linux/alpha binaries see
the child's return value of fork as the parent's pid.  This happens because
linux/alpha binaries apparently check the return value directly, rather
than looking for a non-zero value in a4, as *BSD & OSF/1 do.

Reviewed by:dfr@nlsystems.com
sys/alpha/alpha/vm_machdep.c
sys/powerpc/aim/vm_machdep.c
sys/powerpc/powerpc/vm_machdep.c