[Win32utils-devel] Fwd: win32/process problem

Heesob Park phasis at gmail.com
Thu Dec 6 20:03:38 EST 2007


Hi,

2007/12/7, Berger, Daniel <Daniel.Berger at qwest.com>:

> > -----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:
> >
> > <snip>
> >
> > > 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.
>
> Seem reasonable?


Yes, it seems reasonable.

BTW, how about your thought about supporting Process.create as a different
user with CreateProcessWithLoginW API ?



> Dan


Regards,

Park Heesob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/win32utils-devel/attachments/20071207/ab172b70/attachment.html 


More information about the win32utils-devel mailing list