Support Requests: Browse | Submit New | Admin

[#27935] Open3.popen3 in win32-open3 blocks in latest version (0.3.2).

Date:
2010-03-05 17:13
Priority:
3
Submitted By:
Kent Dahl (menthal)
Assigned To:
Nobody (None)
Category:
win32-open3
State:
Closed
Summary:
Open3.popen3 in win32-open3 blocks in latest version (0.3.2).

Detailed description
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).

Add A Comment: Notepad

Please login


Followup

Message
Date: 2014-01-10 15:46
Sender: Daniel Berger

I'm going to close this as win32-open3 is not need since Ruby
1.9 came out.
Date: 2010-03-06 09:26
Sender: Kent Dahl

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.
Date: 2010-03-05 19:46
Sender: Daniel Berger

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

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

Field Old Value Date By
close_date2014-01-10 15:462014-01-10 15:46djberg96
resolution_idNone2014-01-10 15:46djberg96
status_idOpen2014-01-10 15:46djberg96
category_idNone2010-03-05 19:46djberg96