[Win32utils-devel] Process.kill and at_exit
Daniel Berger
djberg96 at gmail.com
Wed Jun 13 13:20:08 UTC 2012
I could have sworn our custom Process.kill implementation for signals
1 and 4-8 (the one that uses CreateRemoteThread + ExitProcess) allowed
processes to call exit handlers. But it doesn't seem to be the case.
# kill.rb
require 'win32/process'
cmd = "ruby -e 'sleep 3; at_exit{ puts \"done\" }"
pid = Process.spawn(cmd)
Process.kill(1, pid)
But it doesn't seem that the at_exit block fires. Why not?
Regards,
Dan
More information about the win32utils-devel
mailing list