Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <001101c141b1$f3929010$d2823bd5@dmitry> From: "Dmitry Timoshkov" To: 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> Subject: Re: fcntl(F_SETFD) on a file or socket handle Date: Thu, 20 Sep 2001 17:53:17 +0900 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 "Corinna Vinschen" 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. Thanks. -- Dmitry. -- 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/