Skip to content

Commit

Permalink
[tsan][test] Switch setitimer(ITIMER_REAL, ...) to setitimer(ITIMER_V…
Browse files Browse the repository at this point in the history
…IRTUAL, ...)

Followup to #85188
  • Loading branch information
serge-sans-paille committed Mar 19, 2024
1 parent ccf042e commit c9bdeab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler-rt/test/tsan/signal_sync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ int main() {

struct sigaction act = {};
act.sa_handler = &handler;
if (sigaction(SIGALRM, &act, 0)) {
if (sigaction(SIGVTALRM, &act, 0)) {
perror("sigaction");
exit(1);
}
Expand All @@ -39,7 +39,7 @@ int main() {
t.it_value.tv_sec = 0;
t.it_value.tv_usec = 10;
t.it_interval = t.it_value;
if (setitimer(ITIMER_REAL, &t, 0)) {
if (setitimer(ITIMER_VIRTUAL, &t, 0)) {
perror("setitimer");
exit(1);
}
Expand Down

0 comments on commit c9bdeab

Please sign in to comment.