Hi, and thanks for the win32-open3 library. Without it, I would be screaming (even more) when forced to work in Windows.
:P
Recently ran into an issue where my use of Open3.popen3 would block when using the latest 0.3.2 gem of win32-open3 on
both Ruby 1.8.7-p249 (RC2) and Ruby 1.9.1-p378 (RC2).
I see the call block until the executed application terminates. The code in question:
@cin, @cout, @cerr, @pid = Open3.popen3(cmd, 't')
Note that this works quite well with the legacy One-Click Installer of Ruby (Ruby 1.8.6-p27 (RC2)) from rubyinstaller.org,
with win32-open3 gem up to 0.3.1 (x86-mswin32-60).
I noticed that the new Ruby installers for Windows and the 0.3.2 gem have moved to x86-mingw32, and suspect that might
be part of the problem. But I thought the win32-open3 did things its own way, closer to Win32, precisely to avoid some
of the mingw headaches.
Hoping to get my code (ACTIR4CDP) tested on Ruby 1.9.1 soon, so wondering if anyone else has seen the same issue, and
whether it is fixable (or if mingw32 means we're SOL). |