diff options
author | 2007-05-17 20:52:13 +0000 | |
---|---|---|
committer | 2007-05-17 20:52:13 +0000 | |
commit | 1aaa35140ca11902e8f231bca13c21eed31502d3 (patch) | |
tree | 223f2fdb978a6bbd0659b6176e622086810be4b1 | |
parent | fall back to gethostname() when the outgoing connection is not (diff) | |
download | wireguard-openbsd-1aaa35140ca11902e8f231bca13c21eed31502d3.tar.xz wireguard-openbsd-1aaa35140ca11902e8f231bca13c21eed31502d3.zip |
pass received SIGINT from monitor to postauth child so it can clean
up properly. bz#1196, patch from senthilkumar_sen AT hotpop.com;
ok markus@
-rw-r--r-- | usr.bin/ssh/monitor.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/ssh/monitor.c b/usr.bin/ssh/monitor.c index 59dbd684850..ab89de60938 100644 --- a/usr.bin/ssh/monitor.c +++ b/usr.bin/ssh/monitor.c @@ -1,4 +1,4 @@ -/* $OpenBSD: monitor.c,v 1.90 2007/02/19 10:45:58 dtucker Exp $ */ +/* $OpenBSD: monitor.c,v 1.91 2007/05/17 20:52:13 djm Exp $ */ /* * Copyright 2002 Niels Provos <provos@citi.umich.edu> * Copyright 2002 Markus Friedl <markus@openbsd.org> @@ -339,6 +339,7 @@ monitor_child_postauth(struct monitor *pmonitor) monitor_set_child_handler(pmonitor->m_pid); signal(SIGHUP, &monitor_child_handler); signal(SIGTERM, &monitor_child_handler); + signal(SIGINT, &monitor_child_handler); if (compat20) { mon_dispatch = mon_dispatch_postauth20; |