J
Junkone
Hello
How do i invoke the INT signal in xp using ruby. i have this following
code running to do something when its process has a INT signal.
however i dont know how to invoke it.
trap("INT") {
begin
bot.deliver(bot.master,"this is a test run")
rescue Exception => e
puts e
end
I tried, Kill but it does not recognise the pid i sentwhich is valid
irb(main):001:0> Process.kill("INT",4744)
Errno::EINVAL: Invalid argument
from (irb):1:in `kill'
from (irb):1
irb(main):002:0> Process.kill("INT")
ArgumentError: wrong number of arguments -- kill(sig, pid...)
from (irb):2:in `kill'
from (irb):2
irb(main):003:0> Process.kill("INT",4744)
Errno::EINVAL: Invalid argument
from (irb):3:in `kill'
from (irb):3
irb(main):004:0>
How do i invoke the INT signal in xp using ruby. i have this following
code running to do something when its process has a INT signal.
however i dont know how to invoke it.
trap("INT") {
begin
bot.deliver(bot.master,"this is a test run")
rescue Exception => e
puts e
end
I tried, Kill but it does not recognise the pid i sentwhich is valid
irb(main):001:0> Process.kill("INT",4744)
Errno::EINVAL: Invalid argument
from (irb):1:in `kill'
from (irb):1
irb(main):002:0> Process.kill("INT")
ArgumentError: wrong number of arguments -- kill(sig, pid...)
from (irb):2:in `kill'
from (irb):2
irb(main):003:0> Process.kill("INT",4744)
Errno::EINVAL: Invalid argument
from (irb):3:in `kill'
from (irb):3
irb(main):004:0>