delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/03/28/14:01:54

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Thu, 28 Mar 2002 13:56:53 -0500 (EST)
From: David E Euresti <davie AT MIT DOT EDU>
To: <cygwin AT cygwin DOT com>
Subject: Re: Descriptor passing between process
Message-ID: <Pine.GSO.4.30L.0203281350540.13176-100000@biohazard-cafe.mit.edu>
MIME-Version: 1.0

I'm working on a way to pass file descriptors between processes.

I've already got it functioning by using writes to pass the
file handle (using get_osfhandle) and the current processId using
GetCurrentProcessId

the receiving side then calls Duplicate Handle to create the handle.  Then
I do a cygwin_attach_handle_to_fd to convert it to a file descriptor.
Unfortunately I need to know what kind of handle it is before I can call
this.

Is there a way to get the type of a file descriptor at runtime (like
"/dev/piper" etc.)  If there is my problem is solved and I can send you
guys the code I wrote.

Thanks,
David


--
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