]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Remove redundant RFFPWAIT/vfork(2) handling in Linux fork(2) and clone(2) wrappers.
authorbdrewery <bdrewery@FreeBSD.org>
Wed, 7 Oct 2015 19:10:38 +0000 (19:10 +0000)
committerbdrewery <bdrewery@FreeBSD.org>
Wed, 7 Oct 2015 19:10:38 +0000 (19:10 +0000)
commit923a85693e40a7db7ed3eeceedfcfebb993bd639
tree2684641cdd9b65d0f3d3860f87f48e362dc9f543
parent9b1033cdad0d2f3ced950ee53780ba9c3b3c2819
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