U
Uwe Kubosch
Hi all!
I have a Rails app that starts a child process with
IO.popen 'script/backgroundrb' do |io|
loop do
output = io.gets
break if output.nil?
print output
end
end
I would expect the child process to die when the Rails app exits or is
killed. This however does not happen. I do this on Linux.
Can anybody explain to me why child processes continue to live after
their parent process has ended?
I realize this is Linux specific, so feel free to redirect me to
relevant documentation. Also if you know how this works on w$ndoze,
please share.
Any reply is much appreciated.
Uwe Kubosch
http://kubosch.no/
Norway
I have a Rails app that starts a child process with
IO.popen 'script/backgroundrb' do |io|
loop do
output = io.gets
break if output.nil?
print output
end
end
I would expect the child process to die when the Rails app exits or is
killed. This however does not happen. I do this on Linux.
Can anybody explain to me why child processes continue to live after
their parent process has ended?
I realize this is Linux specific, so feel free to redirect me to
relevant documentation. Also if you know how this works on w$ndoze,
please share.
Any reply is much appreciated.
Uwe Kubosch
http://kubosch.no/
Norway