Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!yarrina.connect.com.au!munnari.OZ.AU!spool.mu.edu!howland.reston.ans.net!news.sprintlink.net!tank.news.pipex.net!pipex!news.mathworks.com!newsfeed.internetmci.com!EU.net!peer-news.britain.eu.net!demon!mail2news.demon.co.uk!beckley.demon.co.uk From: Ian W Taylor <iwta@beckley.demon.co.uk> Newsgroups: comp.unix.bsd.freebsd.misc Subject: Odd way of passing parameters Date: Wed, 29 Nov 95 08:05:46 GMT Organization: Glencarn Ltd. Lines: 15 Message-ID: <817632346snz@beckley.demon.co.uk> Reply-To: iwta@beckley.demon.co.uk X-NNTP-Posting-Host: beckley.demon.co.uk X-Newsreader: Demon Internet Simple News v1.30 Whilst working on some C code that was written in the late 70's (maybe early 80's) I came across the following code which seems to work under FreeBSD, but I can't quite decide whether it's a 'legal' ( for want of a better word ;-) ) way of using pipes. Code creates a pipe, the parent writes block to the pipe (approx 132 bytes), it then overwrites itself with execv() and then the new process reads its 'parameters' from the pipe. Any Thoughts ?? -- Regards, Ian T.