File: signal-names.patch

package info (click to toggle)
dante 1.4.3%2Bdfsg-3.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,032 kB
  • sloc: ansic: 60,061; sh: 11,180; yacc: 3,440; lex: 1,821; makefile: 369; awk: 220
file content (17 lines) | stat: -rw-r--r-- 537 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Make sure SIGPWR is not the same as SIGINFO or SIGLOST
 Avoid a duplicate case value in a switch statement on e.g. Alpha or Sparc.
Author: Peter Pentchev <roam@ringlet.net>
Forwarded: not-yet
Last-Update: 2017-01-09

--- a/lib/tostring.c
+++ b/lib/tostring.c
@@ -1555,7 +1555,7 @@
          return "SIGPROF";
 #endif /* SIGPROF */
 
-#ifdef SIGPWR
+#if (defined SIGPWR) && (!defined SIGINFO || SIGINFO != SIGPWR) && (!defined SIGLOST || SIGLOST != SIGPWR)
       case SIGPWR:
          return "SIGPWR";
 #endif /* SIGPWR */