[Win32utils-devel] Problem with Process.spawn + Process.kill

Daniel Berger djberg96 at gmail.com
Tue Jun 12 19:05:20 UTC 2012


Hi,

This little bit of code is causing me trouble. Ruby 1.9.3-p194 on
Windows 7, btw.

# kill_test.rb
cmd = "ruby -e 'sleep 5; at_exit{ puts \"cmd finished\" }"

pid = Process.spawn(cmd)

Process.kill('INT', pid)

puts "Done"

This results in popup dialogue that says, "The application was unable
to start correctly. Click OK to close the application."

Any ideas?

Dan


More information about the win32utils-devel mailing list