*BSD News Article 80287


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!news.ececs.uc.edu!news.kei.com!news.mathworks.com!howland.erols.net!EU.net!main.Germany.EU.net!Dortmund.Germany.EU.net!interface-business.de!usenet
From: j@ida.interface-business.de (J Wunsch)
Newsgroups: comp.unix.bsd.misc
Subject: Re: Programming Ques. - Fork and Wait
Date: 9 Oct 1996 09:45:50 GMT
Organization: interface business GmbH, Dresden
Lines: 24
Message-ID: <53fs8e$crk@innocence.interface-business.de>
References: <532p4u$al0@cssun.cs.usm.my> <5357bg$lff@cssun.cs.usm.my>
  <53aijp$3ko@innocence.interface-business.de> <53e18l$m2s@acebo.sdi.uam.es>
Reply-To: joerg_wunsch@interface-business.de (Joerg Wunsch)
NNTP-Posting-Host: ida.interface-business.de
X-Newsreader: knews 0.9.6
X-Phone: +49-351-31809-14
X-Fax: +49-351-3361187
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E

txomsy@bossa-nova.cnb.uam.es (Jose R. Valverde) wrote:

> > Passing up a value from the child to its parent, however, always
> > requires IPC.
> > 
> 
> Pardon?
> 
> 	For the kind of problem proposed there may be other possibilities.
> If you know the value, you can pass it as an argument to a child process
> called with exec after the fork().

I wrote about passing the value from the child to the parent.

> 	You can get an integer result from a child just looking at its
> status code.

But only between 0 and 127.  Certainly too low for the desired
application.

-- 
J"org Wunsch					       Unix support engineer
joerg_wunsch@interface-business.de       http://www.interface-business.de/~j