[PATCH] Remove TCB_FOLLOWFORK

Dmitry V. Levin ldv at altlinux.org
Thu Jun 23 13:57:43 UTC 2011


On Wed, Jun 22, 2011 at 01:42:20PM +0200, Denys Vlasenko wrote:
> Hi,
> 
> TCB_FOLLOWFORK flag seems to be unnecessary, because we either follow
> all [v]forks/clones or don't follow any, therefore global variable
> followfork is an already existing indicator of what we want to do.
> 
> This patch drops all setting/clearing of TCB_FOLLOWFORK bit,
> and replaces checks for this bit by checks of followfork value.
> 
> In internal_fork, check is moved to in front of if(), since
> the check is needed on both "entering" and "exiting" branch.
> 
> Please review.

Looks OK.


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20110623/e65ac2ae/attachment.bin>


More information about the Strace-devel mailing list