Skip to content

Commit c9bdeab

Browse files
[tsan][test] Switch setitimer(ITIMER_REAL, ...) to setitimer(ITIMER_VIRTUAL, ...)
Followup to #85188
1 parent ccf042e commit c9bdeab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler-rt/test/tsan/signal_sync.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ int main() {
3030

3131
struct sigaction act = {};
3232
act.sa_handler = &handler;
33-
if (sigaction(SIGALRM, &act, 0)) {
33+
if (sigaction(SIGVTALRM, &act, 0)) {
3434
perror("sigaction");
3535
exit(1);
3636
}
@@ -39,7 +39,7 @@ int main() {
3939
t.it_value.tv_sec = 0;
4040
t.it_value.tv_usec = 10;
4141
t.it_interval = t.it_value;
42-
if (setitimer(ITIMER_REAL, &t, 0)) {
42+
if (setitimer(ITIMER_VIRTUAL, &t, 0)) {
4343
perror("setitimer");
4444
exit(1);
4545
}

0 commit comments

Comments
 (0)