delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/06/03/19:10:19

X-Spam-Check-By: sourceware.org
X-T2-Posting-ID: dCnToGxhL58ot4EWY8b+QGwMembwLoz1X2yB7MdtIiA=
X-Cloudmark-Score: 0.000000 []
Date: Sun, 4 Jun 2006 01:09:54 +0200
From: Samuel Thibault <samuel DOT thibault AT ens-lyon DOT org>
To: cygwin AT cygwin DOT com
Cc: dave AT mielke DOT cc
Subject: converse of cygwin_attach_handle_to_fd()?
Message-ID: <20060603230954.GT4441@bouh.residence.ens-lyon.fr>
Mail-Followup-To: cygwin AT cygwin DOT com, dave AT mielke DOT cc
Mime-Version: 1.0
User-Agent: Mutt/1.5.9i-nntp
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hi,

cygwin_attach_handle_to_fd() lets create a cygwin fd on top of a windows
handle. When calling close() on the fd, the windows handle is closed
too. Is there any way to close the fd without closing the underlying
handle? (i.e. the converse of cygwin_attach_handle_to_fd(), actually)

The same question applies to mingw's open_osfhandle() actually.

Samuel

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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