[SCM] strace branch, master, updated. v4.5.20-103-g7b6847b

Dmitry V. Levin ldv at altlinux.org
Fri Mar 11 20:53:10 UTC 2011


On Thu, Mar 10, 2011 at 12:26:08PM +0100, Denys Vlasenko wrote:
> +				in_job_control_stop = 0;
> +				if (WSTOPSIG(status) == SIGSTOP ||
> +				    WSTOPSIG(status) == SIGTSTP ||
> +				    WSTOPSIG(status) == SIGTTIN ||
> +				    WSTOPSIG(status) == SIGTTOU) {
> +					/*
> +					 * PTRACE_GETSIGINFO fails if this is
> +					 * genuine *stop* notification,
> +					 * not *signal* notification
> +					 */
> +					siginfo_t si;
> +					if (ptrace(PTRACE_GETSIGINFO, pid,
> +						    0, &si) != 0)
> +						in_job_control_stop = 1;
> +				}
>  				printleader(tcp);
> -				tprintf("--- %s (%s) @ %lx (%lx) ---",
> +				tprintf(in_job_control_stop
> +					? "--- stopped by %s ---"
> +					: "--- %s (%s) @ %lx (%lx) ---",

In addition to what I've already written in this thread, I want to point
out that, unfortunately, this "stopped by" wording contradicts with
reality.  The tracee is just trapped, and there are no means to make
it really stopped without detaching.


-- 
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/20110311/a1214016/attachment.bin>


More information about the Strace-devel mailing list