diff options
Diffstat (limited to 'sshd-session.c')
-rw-r--r-- | sshd-session.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sshd-session.c b/sshd-session.c index 52e7bd82d..1060ff7d8 100644 --- a/sshd-session.c +++ b/sshd-session.c @@ -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); } |