detach() logic

Dmitry V. Levin ldv at altlinux.org
Fri Jun 21 21:32:16 UTC 2013


On Fri, Jun 21, 2013 at 01:47:22PM +0200, Denys Vlasenko wrote:
> I contemplate the following fix:
> 
> 	sigstop_expected = (tcp->flags & TCB_IGNORE_ONE_SIGSTOP);
> 	if (!sigstop_expected)   // <-- added this one line
> 		error = ptrace(PTRACE_DETACH, tcp->pid, 0, 0);

Yes, it seems to be the right fix.


-- 
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/20130622/90a0b4ef/attachment.bin>


More information about the Strace-devel mailing list