utrace-ptrace && detach with signal semantics

Oleg Nesterov oleg at redhat.com
Sat Oct 10 17:17:55 UTC 2009


On 10/10, Jan Kratochvil wrote:
>
> On Sat, 10 Oct 2009 18:48:29 +0200, Oleg Nesterov wrote:
> > On 10/10, Jan Kratochvil wrote:
> > > (VERBOSE-caught with FAIL now).
> >
> > Cough. please translate this to me ;)
>
> (Cc of each such mail to Roland does not look OK to me but removing Ccs is
> also not OK)

I think always-reply-to-all is the best policy ;)

> --- tests/attach-into-signal.c	6 Oct 2009 19:21:35 -0000	1.6
> +++ tests/attach-into-signal.c	10 Oct 2009 16:47:46 -0000	1.7
> @@ -227,14 +227,8 @@ static void reproduce (void)
>    /* SIGPIPE was still pending and it has not been yet delivered.  */
>    if (WIFSTOPPED (status) && WSTOPSIG (status) == SIGPIPE)
>      {
> -      /* Deliver it and get the queued SIGSTOP.  */
> -      errno = 0;
> -      ptrace (PTRACE_CONT, child, (void *) 1, (void *) SIGPIPE);
> -      assert_perror (errno);
> -
> -      errno = 0;
> -      pid = waitpid (child, &status, 0);
> -      assert (pid == child);
> +      VERBOSE ("Forbidden to catch pending signal from PTRACE_DETACH");
> +      exit (1);

I see, thanks.

Oleg.




More information about the utrace-devel mailing list