delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/20/04:58:26

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Thu, 20 Sep 2001 10:58:00 +0200
From: Corinna Vinschen <cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: fcntl(F_SETFD) on a file or socket handle
Message-ID: <20010920105800.E4194@cygbert.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <077d01c1400e$2d92cdc0$d2823bd5 AT dmitry> <20010918101238 DOT H22900 AT cygbert DOT vinschen DOT de> <008501c14183$d9eddc10$d2823bd5 AT dmitry> <20010920090219 DOT A4194 AT cygbert DOT vinschen DOT de> <003601c141a8$8adc7760$d2823bd5 AT dmitry> <20010920100907 DOT D4194 AT cygbert DOT vinschen DOT de> <001101c141b1$f3929010$d2823bd5 AT dmitry>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <001101c141b1$f3929010$d2823bd5@dmitry>; from dmitry@baikal.ru on Thu, Sep 20, 2001 at 05:53:17PM +0900

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.

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019