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 f7a36a6 commit d4feb44Copy full SHA for d4feb44
compiler-rt/test/tsan/signal_sync.cpp
@@ -30,7 +30,7 @@ int main() {
30
31
struct sigaction act = {};
32
act.sa_handler = &handler;
33
- if (sigaction(SIGALRM, &act, 0)) {
+ if (sigaction(SIGVTALRM, &act, 0)) {
34
perror("sigaction");
35
exit(1);
36
}
@@ -39,7 +39,7 @@ int main() {
39
t.it_value.tv_sec = 0;
40
t.it_value.tv_usec = 10;
41
t.it_interval = t.it_value;
42
- if (setitimer(ITIMER_REAL, &t, 0)) {
+ if (setitimer(ITIMER_VIRTUAL, &t, 0)) {
43
perror("setitimer");
44
45
0 commit comments