summaryrefslogtreecommitdiffstats
path: root/sshd.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2003-06-04 14:56:15 +0200
committerDamien Miller <djm@mindrot.org>2003-06-04 14:56:15 +0200
commit0cbb9dea050942c643f739b79d0d9f30d75da213 (patch)
tree4d563c716e9ecbf0ef3c7c3b2e872f7d87813483 /sshd.c
parent - djm@cvs.openbsd.org 2003/06/04 12:41:22 (diff)
downloadopenssh-0cbb9dea050942c643f739b79d0d9f30d75da213.tar.xz
openssh-0cbb9dea050942c643f739b79d0d9f30d75da213.zip
- (djm) Always use mysignal() for SIGALRM
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sshd.c b/sshd.c
index bdb092016..bc458488b 100644
--- a/sshd.c
+++ b/sshd.c
@@ -1373,7 +1373,7 @@ main(int ac, char **av)
if ((options.protocol & SSH_PROTO_1) &&
key_used == 0) {
/* Schedule server key regeneration alarm. */
- signal(SIGALRM, key_regeneration_alarm);
+ mysignal(SIGALRM, key_regeneration_alarm);
alarm(options.key_regeneration_time);
key_used = 1;
}
@@ -1462,7 +1462,7 @@ main(int ac, char **av)
* mode; it is just annoying to have the server exit just when you
* are about to discover the bug.
*/
- signal(SIGALRM, grace_alarm_handler);
+ mysignal(SIGALRM, grace_alarm_handler);
if (!debug_flag)
alarm(options.login_grace_time);