Bugzilla – Attachment 1035 Details for
Bug 1129
sshd hangs for command-only invocations due to fork/child signals
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
extra debugging
sshd-session.c.diff (text/plain), 1.24 KB, created by
Martijn Koster
on 2005-12-02 23:16:44 AEDT
(
hide
)
Description:
extra debugging
Filename:
MIME Type:
Creator:
Martijn Koster
Created:
2005-12-02 23:16:44 AEDT
Size:
1.24 KB
patch
obsolete
>--- session.c.orig 2005-12-02 03:20:49.000000000 +0000 >+++ session.c 2005-12-02 04:01:33.000000000 +0000 >@@ -403,10 +403,11 @@ > session_proctitle(s); > > #if defined(USE_PAM) >+ debug("pam"); > if (options.use_pam && !use_privsep) > do_pam_setcred(1); > #endif /* USE_PAM */ >- >+ debug("calling fork in do_exec_no_pty"); > /* Fork the child. */ > if ((pid = fork()) == 0) { > is_child = 1; >@@ -466,6 +467,7 @@ > do_child(s, command); > /* NOTREACHED */ > } >+ debug("parent"); > #ifdef _UNICOS > signal(WJSIGNAL, cray_job_termination_handler); > #endif /* _UNICOS */ >@@ -512,9 +514,13 @@ > * handle the case that fdin and fdout are the same. > */ > if (compat20) { >+ debug("calling session_set_fds"); > session_set_fds(s, inout[1], inout[1], s->is_subsystem ? -1 : err[1]); >+ debug("calling session_set_fds done"); > } else { >+ debug("server_loop"); > server_loop(pid, inout[1], inout[1], err[1]); >+ debug("server_loop done"); > /* server_loop has closed inout[1] and err[1]. */ > } > #endif /* USE_PIPES */ >@@ -1614,7 +1620,10 @@ > argv[1] = "-c"; > argv[2] = (char *) command; > argv[3] = NULL; >+ //usleep(10); >+ debug("calling execve for user command"); > execve(shell, argv, env); >+ debug("execve for user command failed"); > perror(shell); > exit(1); > }
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 1129
:
1034
| 1035 |
1065