We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello! Andrew here! I have a question about the line
daemons/lib/daemons/daemonize.rb
Line 49 in 6f0ea6b
Here we got pid from child throw pipe. But then we do not call Process.waitpid / Process.detach for it. Why?
Every time when child process terminated in docker container I get "zombie" process, because tmppid and pid are diffirent.
Here I set log:
diff --git a/lib/daemons/daemonize.rb b/lib/daemons/daemonize.rb index bce7246..e9ec5ca 100644 --- a/lib/daemons/daemonize.rb +++ b/lib/daemons/daemonize.rb @@ -49,6 +49,9 @@ module Daemonize pid = rd.read.to_i rd.close + logger = Logger.new('/tmp/daemons.log') + logger.info [pid, tmppid].inspect + Process.waitpid(tmppid) return pid
cat /tmp/daemons.log # Logfile created on 2018-05-29 13:27:52 +0500 by logger.rb/56504 [38, 35]
Regards, Andrew!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello! Andrew here!
I have a question about the line
daemons/lib/daemons/daemonize.rb
Line 49 in 6f0ea6b
Here we got pid from child throw pipe. But then we do not call Process.waitpid / Process.detach for it. Why?
Every time when child process terminated in docker container I get "zombie" process, because tmppid and pid are diffirent.
Here I set log:
Regards, Andrew!
The text was updated successfully, but these errors were encountered: