Bugzilla – Attachment 934 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]
Updated patch for the Openssh 4.0p1 release
openssh-4.0p1_non-tty.patch (text/plain), 978 bytes, created by
Brian M. Rzycki
on 2005-07-02 02:03:38 AEST
(
hide
)
Description:
Updated patch for the Openssh 4.0p1 release
Filename:
MIME Type:
Creator:
Brian M. Rzycki
Created:
2005-07-02 02:03:38 AEST
Size:
978 bytes
patch
obsolete
>--- openssh-4.0p1/serverloop.c 2004-08-13 06:18:01.000000000 -0500 >+++ openssh-4.0p1-bug2419/serverloop.c 2005-05-25 21:47:56.000000000 -0500 >@@ -57,6 +57,7 @@ RCSID("$OpenBSD: serverloop.c,v 1.117 20 > #include "kex.h" > > extern ServerOptions options; >+extern Session sessions[]; > > /* XXX */ > extern Kex *xxx_kex; >@@ -352,6 +353,8 @@ process_input(fd_set * readset) > connection_closed = 1; > if (compat20) > return; >+ if (sessions[0].pid) >+ kill(sessions[0].pid, SIGHUP); > cleanup_exit(255); > } else if (len < 0) { > if (errno != EINTR && errno != EAGAIN) { >--- openssh-4.0p1/session.c 2005-03-06 05:38:52.000000000 -0600 >+++ openssh-4.0p1-bug2419/session.c 2005-05-25 21:50:05.000000000 -0500 >@@ -2110,6 +2110,8 @@ session_close(Session *s) > debug("session_close: session %d pid %ld", s->self, (long)s->pid); > if (s->ttyfd != -1) > 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