I have a ruby timeout that calls a system (bash) command like this..
Timeout::timeout(10) {
`my_bash_command -c12 -o text.txt`
}
but I think that even if the ruby thread is interrupted, the actual command keeps running in the background.. is it normal? How can I kill it?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…