Bugzilla – Attachment 145 Details for
Bug 396
sshd orphans processes when no pty allocated
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Send HUP to sshd child procs on exit
sshd-hup.patch (text/plain), 1.07 KB, created by
Darren Tucker
on 2002-09-12 23:26:08 AEST
(
hide
)
Description:
Send HUP to sshd child procs on exit
Filename:
MIME Type:
Creator:
Darren Tucker
Created:
2002-09-12 23:26:08 AEST
Size:
1.07 KB
patch
obsolete
>Index: serverloop.c >=================================================================== >RCS file: /cvs/openssh/serverloop.c,v >retrieving revision 1.103 >diff -u -r1.103 serverloop.c >--- serverloop.c 9 Jul 2002 14:06:40 -0000 1.103 >+++ serverloop.c 12 Sep 2002 10:58:12 -0000 >@@ -56,6 +56,7 @@ > #include "kex.h" > > extern ServerOptions options; >+extern Session sessions[]; > > /* XXX */ > extern Kex *xxx_kex; >@@ -351,6 +352,8 @@ > connection_closed = 1; > if (compat20) > return; >+ if (sessions[0].pid) >+ kill(sessions[0].pid, SIGHUP); > fatal_cleanup(); > } else if (len < 0) { > if (errno != EINTR && errno != EAGAIN) { >Index: session.c >=================================================================== >RCS file: /cvs/openssh/session.c,v >retrieving revision 1.218 >diff -u -r1.218 session.c >--- session.c 10 Sep 2002 11:43:56 -0000 1.218 >+++ session.c 12 Sep 2002 10:58:12 -0000 >@@ -1883,6 +1883,8 @@ > fatal_remove_cleanup(session_pty_cleanup, (void *)s); > session_pty_cleanup(s); > } >+ if (s->pid) >+ kill(s->pid, SIGHUP); > if (s->term) > xfree(s->term); > if (s->display)
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 396
: 145 |
934
|
1324