Re: [PATCH v2] USE_SEIZE: fix detaching from stopped processes

2013-06-19 Thread Denys Vlasenko
On 06/19/2013 01:24 PM, Dmitry V. Levin wrote: > On Wed, Jun 19, 2013 at 12:58:13PM +0200, Denys Vlasenko wrote: >> V2: check WSTOPSIG(status) == syscall_trap_sig, not SIGTRAP. >> Add comments explaining what we think about the process status >> in detach() at various steps. Simplify PTRACE_CONT >>

Re: [PATCH v2] USE_SEIZE: fix detaching from stopped processes

2013-06-19 Thread Dmitry V. Levin
On Wed, Jun 19, 2013 at 12:58:13PM +0200, Denys Vlasenko wrote: > V2: check WSTOPSIG(status) == syscall_trap_sig, not SIGTRAP. > Add comments explaining what we think about the process status > in detach() at various steps. Simplify PTRACE_CONT > in wait loop since now syscall_trap_sig can't be see

[PATCH v2] USE_SEIZE: fix detaching from stopped processes

2013-06-19 Thread Denys Vlasenko
V2: check WSTOPSIG(status) == syscall_trap_sig, not SIGTRAP. Add comments explaining what we think about the process status in detach() at various steps. Simplify PTRACE_CONT in wait loop since now syscall_trap_sig can't be seen there. Verified that tests/detach works. * strace.c (detach) [USE_SEI