Bugzilla – Attachment 2368 Details for
Bug 2167
Connection remains when fork() fails.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
A patch which seems to solve this problem.
file_2167.txt (text/plain), 790 bytes, created by
Tetsuo Handa
on 2013-10-31 17:43:50 AEDT
(
hide
)
Description:
A patch which seems to solve this problem.
Filename:
MIME Type:
Creator:
Tetsuo Handa
Created:
2013-10-31 17:43:50 AEDT
Size:
790 bytes
patch
obsolete
>--- openssh-5.3p1.orig/sshd.c >+++ openssh-5.3p1/sshd.c >@@ -686,6 +686,9 @@ privsep_preauth(Authctxt *authctxt) > > pid = fork(); > if (pid == -1) { >+ int i; >+ for (i = 0; i < 1024; i++) >+ shutdown(i, SHUT_RDWR); > fatal("fork of unprivileged child failed"); > } else if (pid != 0) { > debug2("Network child is on pid %ld", (long)pid); >@@ -737,8 +740,12 @@ privsep_postauth(Authctxt *authctxt) > monitor_reinit(pmonitor); > > pmonitor->m_pid = fork(); >- if (pmonitor->m_pid == -1) >+ if (pmonitor->m_pid == -1) { >+ int i; >+ for (i = 0; i < 1024; i++) >+ shutdown(i, SHUT_RDWR); > fatal("fork of unprivileged child failed"); >+ } > else if (pmonitor->m_pid != 0) { > verbose("User child is on pid %ld", (long)pmonitor->m_pid); > close(pmonitor->m_recvfd);
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 Raw
Actions:
View
Attachments on
bug 2167
:
2368
|
2369