Issue 3225: gcompute-tools: Clean up daemonize.
Status:  WontFix
Owner: ----
Closed:  Mar 2015
Reported by ppra...@chromium.org, Mar 3, 2015
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
Can you explain how this is related to Gerrit? This issue tracker is for the Gerrit Code Review project.
Status: AwaitingInformation
Mar 5, 2015
#2 ppra...@chromium.org
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
Project Member #3 edwin.ke...@gmail.com
(No comment was entered for this change.)
Status: WontFix