Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 To: Subject: Re: Descriptor passing between process Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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/