G
gga
I have an application that uses Open3.popen3 to run some -long running-
applications (on linux). Threads are then spawned to capture the
stdout/stderr of the application. This is all working fine.
However, I've noticed that ruby is not propagating the signals to its
child processes. That is, if the user happens to control-c my
application, the subprocesses started are not getting that signal and I
end up with some zombie processes running in the background.
I was wondering if:
a) this is normal behavior?
b) If so, how can I kill processes on exit or aborting, as popen3 does
not seem to give me their process ids.
applications (on linux). Threads are then spawned to capture the
stdout/stderr of the application. This is all working fine.
However, I've noticed that ruby is not propagating the signals to its
child processes. That is, if the user happens to control-c my
application, the subprocesses started are not getting that signal and I
end up with some zombie processes running in the background.
I was wondering if:
a) this is normal behavior?
b) If so, how can I kill processes on exit or aborting, as popen3 does
not seem to give me their process ids.