diff options
author | Darren Tucker <dtucker@zip.com.au> | 2007-05-20 15:10:16 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2007-05-20 15:10:16 +1000 |
commit | 7fa339bb7ca96be1824d85e579cfcfb1be507e51 (patch) | |
tree | bb1387b85520c606b6f1a0a6e6d6ee5d2c3d3b27 /monitor.c | |
parent | 26c6662834a0ed748c52044a60ed51b9102e7d54 (diff) |
- djm@cvs.openbsd.org 2007/05/17 20:52:13
[monitor.c]
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 'monitor.c')
-rw-r--r-- | monitor.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: monitor.c,v 1.90 2007/02/19 10:45:58 dtucker Exp $ */ | 1 | /* $OpenBSD: monitor.c,v 1.91 2007/05/17 20:52:13 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright 2002 Niels Provos <provos@citi.umich.edu> | 3 | * Copyright 2002 Niels Provos <provos@citi.umich.edu> |
4 | * Copyright 2002 Markus Friedl <markus@openbsd.org> | 4 | * Copyright 2002 Markus Friedl <markus@openbsd.org> |
@@ -409,6 +409,7 @@ monitor_child_postauth(struct monitor *pmonitor) | |||
409 | monitor_set_child_handler(pmonitor->m_pid); | 409 | monitor_set_child_handler(pmonitor->m_pid); |
410 | signal(SIGHUP, &monitor_child_handler); | 410 | signal(SIGHUP, &monitor_child_handler); |
411 | signal(SIGTERM, &monitor_child_handler); | 411 | signal(SIGTERM, &monitor_child_handler); |
412 | signal(SIGINT, &monitor_child_handler); | ||
412 | 413 | ||
413 | if (compat20) { | 414 | if (compat20) { |
414 | mon_dispatch = mon_dispatch_postauth20; | 415 | mon_dispatch = mon_dispatch_postauth20; |