[Win32utils-devel] [ win32utils-Bugs-26988 ] Process.create needs to explicitly make individual handles inheritable

noreply at rubyforge.org noreply at rubyforge.org
Mon Aug 24 15:01:16 EDT 2009


Bugs item #26988, was opened at 2009-08-24 14:01
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=411&aid=26988&group_id=85

Category: win32-process
Group: Code
Status: Open
Resolution: None
Priority: 3
Submitted By: Michael Buselli (cosine)
Assigned to: Nobody (None)
Summary: Process.create needs to explicitly make individual handles inheritable

Initial Comment:
I've encountered some versions of Ruby on Windows (in my particular case Ruby 1.9.1 compiled with MinGW) where IO.pipe does not create inheritable handles.  This causes problems when Process.create is used to create a pipe to a child process.  The attached patch to win32-process works around this issue by always explicitly calling SetHandleInformation to make the passed handles inheritable.

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

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


More information about the win32utils-devel mailing list