This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
[PATCH] define SIGPWR
- From: "Yaakov (Cygwin/X)" <yselkowitz at users dot sourceforge dot net>
- To: cygwin-patches at cygwin dot com
- Date: Thu, 25 Feb 2010 23:15:45 -0600
- Subject: [PATCH] define SIGPWR
I'm running across more and more software which expects SIGPWR to be
defined.
In Linux, SIGPWR is a synonym for SIGLOST on sparc, on alpha it's a
synonym for SIGINFO (unique to alpha, and SIGLOST is not defined), and
almost all other arches do not define SIGLOST at all and define SIGPWR
on it's own. Only one arch (parisc) defines both SIGLOST and SIGPWR
separately.
Neither SIGPWR nor SIGLOST are defined by POSIX. Since we already
define SIGLOST, and no signal value <SIGRTMIN is undefined, this patch
follows the lead of Linux sparc and defines SIGPWR as a synonym for SIGLOST.
IIUC in strsig.cc, only the first signal passed to _s2 will be listed by
'kill -l' but both are accepted. To match Linux behaviour I chose to
make SIGPWR primary.
Patch attached.
Yaakov
Attachment:
cygwin-signal-SIGPWR.patch
Description: Text document