www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/01/15/00:31:33

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, 15 Jan 2004 00:30:48 -0500 (Eastern Standard Time)
From: David Rosenbloom <davidr AT artifactory DOT com>
Reply-To: davidr AT ezmeeting DOT com
To: cygwin AT cygwin DOT com
Subject: sendmsg/recvmsg file descriptor passing
Message-ID: <Pine.WNT.4.58.0401150003290.2768@davidr.sigmanyc.ezmeeting.com>
X-X-Sender: davidr@[127.0.0.1]
X-Spam-Status: No, hits=0.0 required=5.0 tests=USER_AGENT_PINE version=2.55
X-Spam-Level:
X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp)
X-Sanitizer: Sigma Design/eZmeeting Mail Filter
MIME-Version: 1.0

I am unable to get sendmsg and recvmsg to successfully pass open file
descriptors between processes. I am using the Stevens APUE sample as a template,
the 4.3BSD version, since that matches the msghdr struct in cygwin/socket.h. I
notice a bunch of postings in the archive indicating (a) that file descriptor
passing was not supported at one time, and (b) that it may have been
subsequently added - I can't tell from the threads.

What is the current status of this? If implemented, does it have any caveats or
conditions which differ from the BSD implementation? If not implemented for the
passing of open file descriptors, is there an alternative approach (for two
cygwin processes)?

tia,
 - davidr



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