Process.kill 'exit' doesn't work?

Hello all.

I see from the following that Process.kill ‘hup’ works, but
Process.kill ‘exit’ doesn’t. Anybody know if this is expected?
Thanks!

1.9.3p194 :001 > Process.kill ‘EXIT’, Process.pid
ArgumentError: unsupported name SIGEXIT' from (irb):1:inkill’
from (irb):1
from /home/rogerdpack/.rvm/rubies/ruby-1.9.3-p194/bin/irb:16:in
`’
1.9.3p194 :002 > Signal.list
=> {“EXIT”=>0, “HUP”=>1, “INT”=>2, “QUIT”=>3, “ILL”=>4, “TRAP”=>5,
“IOT”=>6, “ABRT”=>6, “FPE”=>8, “KILL”=>9, “BUS”=>7, “SEGV”=>11,
“SYS”=>31, “PIPE”=>13, “ALRM”=>14, “TERM”=>15, “URG”=>23, “STOP”=>19,
“TSTP”=>20, “CONT”=>18, “CHLD”=>17, “CLD”=>17, “TTIN”=>21, “TTOU”=>22,
“IO”=>29, “XCPU”=>24, “XFSZ”=>25, “VTALRM”=>26, “PROF”=>27,
“WINCH”=>28, “USR1”=>10, “USR2”=>12, “PWR”=>30, “POLL”=>29}
1.9.3p194 :003 > Process.kill ‘HUP’, Process.pid

(irb exits).
Thanks!

I see from the following that Process.kill ‘hup’ works, but
Process.kill ‘exit’ doesn’t. Anybody know if this is expected?
Thanks!

Oops I see this was answered already:

http://www.ruby-forum.com/topic/200712

So moving discussion there…

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs