[Win32utils-devel] [ win32utils-Support Requests-27935 ] Open3.popen3 in win32-open3 blocks in latest version (0.3.2).

noreply at rubyforge.org noreply at rubyforge.org
Fri Jan 10 15:46:40 UTC 2014


Support Requests item #27935, was opened at 2010-03-05 10:13
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=412&aid=27935&group_id=85

Category: win32-open3
Group: Code
>Status: Closed
>Resolution: Out of Date
Priority: 3
Submitted By: Kent Dahl (menthal)
Assigned to: Nobody (None)
Summary: Open3.popen3 in win32-open3 blocks in latest version (0.3.2).

Initial Comment:
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).

----------------------------------------------------------------------

>Comment By: Daniel Berger (djberg96)
Date: 2014-01-10 08:46

Message:
I'm going to close this as win32-open3 is not need since Ruby 1.9 came out.

----------------------------------------------------------------------

Comment By: Kent Dahl (menthal)
Date: 2010-03-06 02:26

Message:
Thanks for the prompt reply. I'll give the new VC6 gem a 
try back at work.

I've tried a bit with Ruby 1.9.1-p378 (RC2), and the 
default open3 library, but so far no luck. Will try a bit 
more, but this probably ain't the forum to follow up those 
issues.

----------------------------------------------------------------------

Comment By: Daniel Berger (djberg96)
Date: 2010-03-05 12:46

Message:
I'll push out a VC6 gem tonight and you can see if that helps.

You should NOT use win32-open3 with Ruby 1.9.x. The open3 library that ships as part of the standard library should work.

Regards,

Dan

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=412&aid=27935&group_id=85


More information about the win32utils-devel mailing list