Bug 680903
Summary: | incorrect real time signals | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Karel Zak <kzak> |
Component: | strace | Assignee: | Roland McGrath <roland> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 14 | CC: | dvlasenk, ldv, roland, schwab |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-02-28 13:34:18 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Karel Zak
2011-02-28 12:24:10 UTC
$ cat s.c #include <stdio.h> #include <unistd.h> #include <signal.h> int main(void) { printf("SIGRTMIN=%d, __SIGRTMIN=%d\n", SIGRTMIN, __SIGRTMIN); return kill(getpid(), SIGRTMIN + 10); } $ strace -ekill ./s SIGRTMIN=34, __SIGRTMIN=32 kill(13589, SIGRT_12) = 0 --- SIGRT_12 (Real-time signal 10) @ 0 (0) --- +++ killed by SIGRT_12 +++ Real-time signal 10 Note that SIGRTMIN != __SIGRTMIN. The first is defined by glibc, the latter is defined by kernel headers. This difference is documented in signal(7). There should be no surprise that strace prints kernel constants while strsignal(3) prints glibc constants. |