This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]