]> granicus.if.org Git - strace/commitdiff
2003-09-23 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@redhat.com>
Tue, 23 Sep 2003 22:19:32 +0000 (22:19 +0000)
committerRoland McGrath <roland@redhat.com>
Tue, 23 Sep 2003 22:19:32 +0000 (22:19 +0000)
* signal.c (sprintsigmask): Print RT_%u for __SIGRTMIN..__SIGRTMAX.
Fixes RH#104365.

signal.c

index 75f757e6a24d761e2cf159e06dfe87ce600261cb..9ced43efa55047b80fa8b55d42246ed8a94db07c 100644 (file)
--- a/signal.c
+++ b/signal.c
@@ -344,6 +344,13 @@ int rt; /* set might include realtime sigs */
                        if (i < nsignals) {
                                sprintf(s, format, signalent[i] + 3);
                        }
+#ifdef SIGRTMIN
+                       else if (i >= __SIGRTMIN && i <= __SIGRTMAX) {
+                               char tsig[40];
+                               sprintf(tsig, "RT_%u", i - __SIGRTMIN);
+                               sprintf(s, format, tsig);
+                       }
+#endif /* SIGRTMIN */
                        else {
                                char tsig[32];
                                sprintf(tsig, "%u", i);