[Win32utils-devel] Fwd: win32/process problem
Daniel.Berger at qwest.com
Thu Dec 6 18:00:06 EST 2007
> -----Original Message-----
> From: win32utils-devel-bounces at rubyforge.org
> [mailto:win32utils-devel-bounces at rubyforge.org] On Behalf Of
> Daniel Berger
> Sent: Thursday, December 06, 2007 5:18 AM
> To: Development and ideas for win32utils projects
> Subject: Re: [Win32utils-devel] Fwd: win32/process problem
> Heesob Park wrote:
> > Though it is doubtful whether this is the cause or not,
> Insert flowing
> > two lines before ProcessInfo.new (line #409 of
> > process.rb) might be helpful.
> > CloseHandle(procinfo[8,4].unpack('L').first)
> > CloseHandle(procinfo[12,4].unpack('L').first)
> I'm somewhat afraid to do that, because I can't be sure other
> people aren't using the process handle afterwards.
> At the very least I should document that, however. Hmm, let
> me mull it over.
Ok, what if we add a "close_handles" option to Process.create? If set to
true (the default), we'll close the handles automatically before
returning from the method. Users could explicitly set it to false if
they want to keep the handles open.
This communication is the property of Qwest and may contain confidential or
privileged information. Unauthorized use of this communication is strictly
prohibited and may be unlawful. If you have received this communication
in error, please immediately notify the sender by reply e-mail and destroy
all copies of the communication and any attachments.
More information about the win32utils-devel