bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#13026: Assume POSIX 1003.1-1988 or later for signal.h.


From: Paul Eggert
Subject: bug#13026: Assume POSIX 1003.1-1988 or later for signal.h.
Date: Sun, 02 Dec 2012 17:31:48 -0800
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0

On 11/30/2012 12:54 AM, Eli Zaretskii wrote:
> Maybe a better fix there would be to
> have an array of data (name and value of each signal), and loop
> through it, instead of using if-elseif.

Sure, that's easy enough.  Gnulib already has a module to do that.
Revised patch attached (most of the new stuff is just code
copied from Gnulib).  As a bonus, this fixes signal-process to
handle several signal names that it currently doesn't support,
such as those of the real-time signals.

> By the way, an alternative way of dealing with the lack of Posix
> signals on Windows is to condition the related fragments on WINDOWSNT,
> and remove the "#ifdef SIGFOO" conditions for Posix signals.

I'd rather use the Autoconf style, which is to test for individual
features rather than test for operating systems, as that tends to
make maintenance easier when operating systems or the emulations
mutate.

Attachment: signal.txt
Description: Text document


reply via email to

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