Where goes signal sent to process which called system?
Posted
by tig
on Stack Overflow
See other posts from Stack Overflow
or by tig
Published on 2010-06-16T01:49:45Z
Indexed on
2010/06/16
1:52 UTC
Read the original article
Hit count: 266
ruby
|signal-processing
Given a very simple ruby script:
child = fork do
system 'sleep 10000'
end
5.times do
sleep 1
puts "send kill to #{child}"
Process.kill("QUIT", child)
end
QUIT signal is just lost. Where does it go? Something with default handler which just ignores it?
© Stack Overflow or respective owner