bug-hurd
[Top][All Lists]
Advanced

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

Re: [PATCH 15/15] Hurd signals: Use POSIX sigcodes


From: Jeremie Koenig
Subject: Re: [PATCH 15/15] Hurd signals: Use POSIX sigcodes
Date: Tue, 19 Jul 2011 19:10:27 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

On Thu, Jun 30, 2011 at 12:27:51AM +0200, Samuel Thibault wrote:
> Jeremie Koenig, le Wed 29 Jun 2011 18:30:27 +0200, a écrit :
> > * sysdeps/mach/hurd/i386/bits/sigcontext.h: Remove the constants formerly
> > used as sigcodes.
> 
> I don't think you can do that. I'm afraid you need to keep both the old
> values for the !SA_SIGINFO case and the POSIX values for the SA_SIGINFO
> case.

I attach two alternative patches (they built but I did not test them).

Both of them use two variants of _hurd_exception2signal and call the
non-default variant from trampoline.c when it's required. Non-exception
sigcodes are cleared to 0 in the legacy case, in both patches.

I personally favor "sigcodes_legacy_as_old.diff" since I believe we
should eventually phase out and get rid of the legacy sigcodes.

-- 
Jeremie Koenig <jk@jk.fr.eu.org>
http://jk.fr.eu.org

Attachment: sigcodes_legacy_as_old.diff
Description: Text Data

Attachment: sigcodes_posix_as_new.diff
Description: Text Data


reply via email to

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