diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2007-05-17 20:52:14 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2007-05-17 20:52:14 +0000 |
commit | 196e13b3652ba89bcfb5f6b17cf2759d61c3ec56 (patch) | |
tree | ad37c62e259306822d32d340549e28763035dcd3 /usr.bin/ssh | |
parent | 30d02c933b78c18f61de52e0e46e889116308f26 (diff) |
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@
Diffstat (limited to 'usr.bin/ssh')
-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; |