*BSD News Article 44795


Return to BSD News archive

#! rnews 1185 sserve.cc.adfa.oz.au
Xref: sserve comp.unix.bsd:16628 comp.unix.programmer:25988
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.hawaii.edu!ames!pendragon!news.msfc.nasa.gov!elroy.jpl.nasa.gov!swrinde!howland.reston.ans.net!news2.near.net!tools.near.net!not-for-mail
From: barmar@nic.near.net (Barry Margolin)
Newsgroups: comp.unix.bsd,comp.unix.programmer
Subject: Re: Passing file descriptors thru rexec() socket
Date: 21 May 1995 23:32:19 -0400
Organization: BBN Planet Corporation, Cambridge, MA
Lines: 13
Message-ID: <3pp0k3$f1k@tools.near.net>
References: <D8xzwM.IG5@cs.dal.ca>
NNTP-Posting-Host: tools.near.net

In article <D8xzwM.IG5@cs.dal.ca> edemaine@ug.cs.dal.ca (Erik Demaine) writes:
>I've been having some troubles passing file descriptors between a 
>"parent" process and a remote "child" process.  This is not the typical 
>child/parent relation;  the child was spawned using rexec().  The problem 
>occurs even when the remote host is just "localhost."

File descriptors can only be passed through Unix domain sockets.  Rexec()
always uses Internet domain sockets, even when the remote host is
localhost.
-- 
Barry Margolin
BBN Planet Corporation, Cambridge, MA
barmar@bbnplanet.com