bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 09/15] Hurd signals: implement global signal dispositions


From: Jérémie Koenig
Subject: Re: [PATCH 09/15] Hurd signals: implement global signal dispositions
Date: Fri, 22 Jul 2011 16:28:58 +0200

On Sun, Jul 3, 2011 at 2:16 AM, Samuel Thibault <samuel.thibault@gnu.org> wrote:
>> --- a/sysdeps/mach/hurd/spawni.c
>> +++ b/sysdeps/mach/hurd/spawni.c
(...)
>> +  ints[INIT_SIGPENDING] = _hurd_sigstate_pending (ss); /* XXX really? */
>
> Mmm. According to POSIX, fork() is supposed to clear pending signals,
> but GNU/Hurd currently does not clear them. According to POSIX,
> exec() is supposed to not clear pending signals. So at least, spawn()
> inheriting pending signals is coherent in GNU/Hurd. Making fork() and
> spwan() clear pending signals would be a separate fix.

Attached.
-- 
Jérémie Koenig <jk@jk.fr.eu.org>
http://jk.fr.eu.org/

Attachment: fork-spawn-clear-pending.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]