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

Heesob Park phasis at gmail.com
Wed Jun 13 01:04:35 UTC 2012


Hi,

2012/6/13 Daniel Berger <djberg96 at gmail.com>

> 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?
>
> Did you see the popup dialogue after Process.kill?
I guess this issue is similer to http://bugs.ruby-lang.org/issues/6535 .
If so, it is fixed on the trunk.

Regards,
Park Heesob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/win32utils-devel/attachments/20120613/319f3573/attachment.html>


More information about the win32utils-devel mailing list