summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2003-08-25 01:16:21 +0000
committerBen Lindstrom <mouring@eviladmin.org>2003-08-25 01:16:21 +0000
commit5ade9abc37df3dacacbe20104877ca6dab61082a (patch)
treeb3a521b87d93ecc0f1f17f4e659c1d4bf90f86f5 /sshd.c
parentaf4a6c3a5619299a16cfbb545cde110849596204 (diff)
- (bal) redo how we handle 'mysignal()'. Move it to
openbsd-compat/bsd-misc.c, s/mysignal/signal/ and #define signal to be our 'mysignal' by default. OK djm@
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 0e1bde3a3..8d04f6a74 100644
--- a/sshd.c
+++ b/sshd.c
@@ -1368,7 +1368,7 @@ main(int ac, char **av)
1368 if ((options.protocol & SSH_PROTO_1) && 1368 if ((options.protocol & SSH_PROTO_1) &&
1369 key_used == 0) { 1369 key_used == 0) {
1370 /* Schedule server key regeneration alarm. */ 1370 /* Schedule server key regeneration alarm. */
1371 mysignal(SIGALRM, key_regeneration_alarm); 1371 signal(SIGALRM, key_regeneration_alarm);
1372 alarm(options.key_regeneration_time); 1372 alarm(options.key_regeneration_time);
1373 key_used = 1; 1373 key_used = 1;
1374 } 1374 }
@@ -1457,7 +1457,7 @@ main(int ac, char **av)
1457 * mode; it is just annoying to have the server exit just when you 1457 * mode; it is just annoying to have the server exit just when you
1458 * are about to discover the bug. 1458 * are about to discover the bug.
1459 */ 1459 */
1460 mysignal(SIGALRM, grace_alarm_handler); 1460 signal(SIGALRM, grace_alarm_handler);
1461 if (!debug_flag) 1461 if (!debug_flag)
1462 alarm(options.login_grace_time); 1462 alarm(options.login_grace_time);
1463 1463