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.