]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Remove redundant RFFPWAIT/vfork(2) handling in Linux fork(2) and clone(2) wrappers.
authorBryan Drewery <bdrewery@FreeBSD.org>
Wed, 7 Oct 2015 19:10:38 +0000 (19:10 +0000)
committerBryan Drewery <bdrewery@FreeBSD.org>
Wed, 7 Oct 2015 19:10:38 +0000 (19:10 +0000)
commita7306730584a2220d0ef907a93d464c2b1edd0ce
tree2684641cdd9b65d0f3d3860f87f48e362dc9f543
parentd07c923bdad3051dfe5bccd32dbb8293dbf2fcb5
Remove redundant RFFPWAIT/vfork(2) handling in Linux fork(2) and clone(2) wrappers.

r161611 added some of the code from sys_vfork() directly into the Linux
module wrappers since they use RFSTOPPED.  In r232240, the RFFPWAIT handling
was moved to syscallret(), thus this code in the Linux module is no longer
needed as it will be called later.

This also allows the Linux wrappers to benefit from the fix in r275616 for
threads not getting suspended if their vforked child is stopped while they
wait on them.

Reviewed by: jhb, kib
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D3828
sys/compat/linux/linux_fork.c