Bugzilla – Attachment 290 Details for
Bug 560
Privsep child continues to run after monitor killed.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Pass monitor signals through to child
openssh-hupcleanup.patch (text/plain), 946 bytes, created by
Darren Tucker
on 2003-05-12 21:49:01 AEST
(
hide
)
Description:
Pass monitor signals through to child
Filename:
MIME Type:
Creator:
Darren Tucker
Created:
2003-05-12 21:49:01 AEST
Size:
946 bytes
patch
obsolete
>Index: monitor.c >=================================================================== >RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/monitor.c,v >retrieving revision 1.42 >diff -u -r1.42 monitor.c >--- monitor.c 10 May 2003 09:28:03 -0000 1.42 >+++ monitor.c 12 May 2003 11:44:25 -0000 >@@ -143,6 +143,7 @@ > static char *auth_method = "unknown"; > static int session_id2_len = 0; > static u_char *session_id2 = NULL; >+static int monitor_child_pid; > > struct mon_table { > enum monitor_reqtype type; >@@ -319,8 +320,24 @@ > } > > void >+monitor_set_child_handler(int pid) >+{ >+ monitor_child_pid = pid; >+} >+ >+void >+monitor_child_handler(int signal) >+{ >+ kill(monitor_child_pid, signal); >+} >+ >+void > monitor_child_postauth(struct monitor *pmonitor) > { >+ monitor_set_child_handler(pmonitor->m_pid); >+ mysignal(SIGHUP, &monitor_child_handler); >+ mysignal(SIGTERM, &monitor_child_handler); >+ > if (compat20) { > mon_dispatch = mon_dispatch_postauth20;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 560
: 290