[PATCH 09/15] Hurd signals: implement global signal dispositions
Jérémie Koenig
jk@jk.fr.eu.org
Fri Jul 22 17:18:00 GMT 2011
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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fork-spawn-clear-pending.diff
Type: text/x-patch
Size: 1596 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20110722/0075562d/attachment.bin>
More information about the Libc-alpha
mailing list