summaryrefslogtreecommitdiff
path: root/ssh-agent.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-01-03 23:41:05 +1100
committerDamien Miller <djm@mindrot.org>2000-01-03 23:41:05 +1100
commit62ab38ab9e5bae5b516ff10ab62ef55a2592059a (patch)
treed121a0bc30cb68af0d6491ec0336bd9117b9ae66 /ssh-agent.c
parente9c8f4dfdc0117fb02b9d9a421f07464ccadfcff (diff)
- OpenBSD CVS updates
- [ssh-agent.c] cleanup_exit() for SIGTERM/SIGHUP, too. from fgsch@ and dgaudet@arctic.org - [sshconnect.c] compare correct version for 1.3 compat mode
Diffstat (limited to 'ssh-agent.c')
-rw-r--r--ssh-agent.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ssh-agent.c b/ssh-agent.c
index 27ab6eaa9..8a69b1d08 100644
--- a/ssh-agent.c
+++ b/ssh-agent.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh-agent.c,v 1.24 1999/12/15 19:43:10 markus Exp $ */ 1/* $OpenBSD: ssh-agent.c,v 1.25 2000/01/02 21:51:03 markus Exp $ */
2 2
3/* 3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -9,7 +9,7 @@
9 */ 9 */
10 10
11#include "includes.h" 11#include "includes.h"
12RCSID("$OpenBSD: ssh-agent.c,v 1.24 1999/12/15 19:43:10 markus Exp $"); 12RCSID("$OpenBSD: ssh-agent.c,v 1.25 2000/01/02 21:51:03 markus Exp $");
13 13
14#include "ssh.h" 14#include "ssh.h"
15#include "rsa.h" 15#include "rsa.h"
@@ -643,10 +643,10 @@ main(int ac, char **av)
643 signal(SIGALRM, check_parent_exists); 643 signal(SIGALRM, check_parent_exists);
644 alarm(10); 644 alarm(10);
645 } 645 }
646 signal(SIGHUP, cleanup_exit);
647 signal(SIGTERM, cleanup_exit);
648 signal(SIGINT, SIG_IGN); 646 signal(SIGINT, SIG_IGN);
649 signal(SIGPIPE, SIG_IGN); 647 signal(SIGPIPE, SIG_IGN);
648 signal(SIGHUP, cleanup_exit);
649 signal(SIGTERM, cleanup_exit);
650 while (1) { 650 while (1) {
651 FD_ZERO(&readset); 651 FD_ZERO(&readset);
652 FD_ZERO(&writeset); 652 FD_ZERO(&writeset);