Mail Archives: cygwin/2001/09/20/07:37:44
On Thu, Sep 20, 2001 at 10:58:00AM +0200, Corinna Vinschen wrote:
> On Thu, Sep 20, 2001 at 05:53:17PM +0900, Dmitry Timoshkov wrote:
> > "Corinna Vinschen" <cygwin AT cygwin DOT com> wrote:
> >
> > [skipped]
> >
> > > > I see that fhandler_socket::fcntl() calls fhandler_base::fcntl() in
> > > > all cases different from F_SETFL. Perhaps my understanding of things
> > > > in C++ is not enough (I'm an old hand plain C programmer).
> > >
> > > set_close_on_exec() is a virtual method which means, the called
> > > method is dependent of the actual class of the object which calls
> > > it.
> >
> > Thanks for clarification.
> >
> > > Did you get the sources of Cygwin via CVS? If so, could
> > > you please check if my just checked in patch works for you?
> >
> > I don't get Cygwin sources from CVS, but I have looked into your patch
> > after it has appeared in CVS. Using SetHandleInformation() on NT instead
> > of DuplicateHandle()/CloseHandle() pair is much better IMO, and should
> > not cause any side effects.
>
> Yeah but even if the patch helps for NT, it wouldn't solve it
> for 9x. Sigh.
I have checked in another change to sockets now which changes the
behavior so that socket handles will not be Dup'd/Closed anymore.
Instead, after an exec they will be closed when close_on_exec is
set.
Could you please test it as soon as possible?
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin AT cygwin DOT com
Red Hat, Inc.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -