diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2000-01-02 21:51:04 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2000-01-02 21:51:04 +0000 |
commit | 4170262b3e51f04453aa1a283175a95e4f9cf41b (patch) | |
tree | 646565c2966d36d09919cedc8106943b9f1da644 | |
parent | e2a63f08042c06baaa3573d2199223b41f5f3b08 (diff) |
cleanup_exit() for SIGTERM/SIGHUP, too. from fgsch@ and dgaudet@arctic.org
-rw-r--r-- | usr.bin/ssh/ssh-agent.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/ssh/ssh-agent.c b/usr.bin/ssh/ssh-agent.c index 35895413cff..6646956ea7f 100644 --- a/usr.bin/ssh/ssh-agent.c +++ b/usr.bin/ssh/ssh-agent.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh-agent.c,v 1.24 1999/12/15 19:43:10 markus Exp $ */ +/* $OpenBSD: ssh-agent.c,v 1.25 2000/01/02 21:51:03 markus Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> @@ -9,7 +9,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: ssh-agent.c,v 1.24 1999/12/15 19:43:10 markus Exp $"); +RCSID("$OpenBSD: ssh-agent.c,v 1.25 2000/01/02 21:51:03 markus Exp $"); #include "ssh.h" #include "rsa.h" @@ -636,6 +636,8 @@ main(int ac, char **av) } signal(SIGINT, SIG_IGN); signal(SIGPIPE, SIG_IGN); + signal(SIGHUP, cleanup_exit); + signal(SIGTERM, cleanup_exit); while (1) { FD_ZERO(&readset); FD_ZERO(&writeset); |