We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 047b2b2 commit 01fa550Copy full SHA for 01fa550
compiler-rt/test/tsan/signal_reset.cpp
@@ -28,12 +28,12 @@ static void* reset(void *p) {
28
struct sigaction act = {};
29
for (int i = 0; i < 1000000; i++) {
30
act.sa_handler = &handler;
31
- if (sigaction(SIGPROF, &act, 0)) {
+ if (sigaction(SIGALRM, &act, 0)) {
32
perror("sigaction");
33
exit(1);
34
}
35
act.sa_handler = SIG_IGN;
36
37
38
39
@@ -44,7 +44,7 @@ static void* reset(void *p) {
44
int main() {
45
46
47
48
49
50
@@ -53,7 +53,7 @@ int main() {
53
t.it_value.tv_sec = 0;
54
t.it_value.tv_usec = 10;
55
t.it_interval = t.it_value;
56
- if (setitimer(ITIMER_PROF, &t, 0)) {
+ if (setitimer(ITIMER_REAL, &t, 0)) {
57
perror("setitimer");
58
59
0 commit comments