Skip to content

Commit

Permalink
Check for SA_RESTART before using it.
Browse files Browse the repository at this point in the history
ok djm@
  • Loading branch information
daztucker committed Jul 25, 2024
1 parent c276672 commit b05fda2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sshd-session.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,9 @@ grace_alarm_handler(int sig)
memset(&sa, 0, sizeof(sa));
sa.sa_handler = SIG_IGN;
sigfillset(&sa.sa_mask);
#if defined(SA_RESTART)
sa.sa_flags = SA_RESTART;
#endif
(void)sigaction(SIGTERM, &sa, NULL);
kill(0, SIGTERM);
}
Expand Down

0 comments on commit b05fda2

Please sign in to comment.