| Issue 3225: | gcompute-tools: Clean up daemonize. | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Affected Version: What steps will reproduce the problem? - Create a GCE instance. - ssh my-gce-instance -- git clone https://gerrit.googlesource.com/gcompute-tools - ssh my-gce-instance -- gcompute-tools/git-cookie-authdaemon What is the expected output? What do you see instead? - authdaemon launched as a daemon, ssh session exits. - instead, the ssh session hangs. Why? Although the git-cookie-authdaemon process is reattached to init, it has stdout/stderr open while the sshd process tree is holding onto the other end. This causes sshd to hang forever. Reference (http://man7.org/linux/man-pages/man3/daemon.3.html) The stdin/out/err should be redirected to /dev/null to avoid this problem. I handled this in the client code I was using by redirecting myself, and that fixes the problem.
Mar 5, 2015
Project Member
#1
edwin.ke...@gmail.com
Status:
AwaitingInformation
Mar 5, 2015
tl;dr My bad. Feel free to WontFix. gcompute-tools is one of the repositories hosted at https://gerrit.googlesource.com/?format=HTML I was thrown off because it seemed that it was part of gerrit-core repositories. Looking for another home for this report. :)
Mar 5, 2015
(No comment was entered for this change.)
Status:
WontFix
|
|
| ► Sign in to add a comment |