public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <dan@debian•org>
To: David Woodhouse <dwmw2@infradead•org>
Cc: drepper@redhat•com, linuxppc-dev@ozlabs•org,
	"Mika Penttilä" <mika.penttila@kolumbus•fi>,
	akpm@osdl•org, linux-kernel@vger•kernel.org
Subject: Re: [PATCH] 3/3 Generic sys_rt_sigsuspend
Date: Tue, 29 Nov 2005 10:53:46 -0500	[thread overview]
Message-ID: <20051129155346.GA25431@nevyn.them.org> (raw)
In-Reply-To: <1133260923.31573.131.camel@baythorne.infradead.org>

On Tue, Nov 29, 2005 at 10:42:03AM +0000, David Woodhouse wrote:
> I believe not. The previous versions would loop until do_signal()
> returned non-zero; i.e. until a signal was actually delivered.
> By returning -ERESTARTNOHAND we achieve the same effect. If there's a
> signal delivered, that gets magically converted to -EINTR, but if
> there's no signal delivered, the syscall gets restarted.

And, crazy coincidence, I think this will fix the recently reported
ptrace attach bug.  Right now if you ptrace a process stuck in
sigsuspend, you can't easily force it to return to userspace.
I'll test that if these patches are merged.

-- 
Daniel Jacobowitz
CodeSourcery, LLC

  reply	other threads:[~2005-11-29 16:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1133225007.31573.86.camel@baythorne.infradead.org>
2005-11-29  0:57 ` [PATCH] 1/3 Add pselect/ppoll() system calls David Woodhouse
2005-11-29  0:57 ` [PATCH] 2/3 Add TIF_RESTORE_SIGMASK support for arch/powerpc David Woodhouse
2005-11-29  0:57 ` [PATCH] 3/3 Generic sys_rt_sigsuspend David Woodhouse
2005-11-29  5:18   ` Mika Penttilä
2005-11-29 10:42     ` David Woodhouse
2005-11-29 15:53       ` Daniel Jacobowitz [this message]
2005-11-29 16:09         ` David Woodhouse

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051129155346.GA25431@nevyn.them.org \
    --to=dan@debian$(echo .)org \
    --cc=akpm@osdl$(echo .)org \
    --cc=drepper@redhat$(echo .)com \
    --cc=dwmw2@infradead$(echo .)org \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linuxppc-dev@ozlabs$(echo .)org \
    --cc=mika.penttila@kolumbus$(echo .)fi \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox