Path: utzoo!censor!geac!torsqnt!hybrid!scifi!bywater!uunet!cs.utexas.edu!jsq From: loren@Eng.Sun.COM (Loren L. Hart) Newsgroups: comp.std.unix Subject: Re: qfork() (The Spawn of spawn()) Message-ID: <16871@cs.utexas.edu> Date: 5 Jan 91 00:43:08 GMT References: <16066@cs.utexas.edu> <16271@cs.utexas.edu> <16307@cs.utexas.edu> <16369@cs.utexas.edu> <16478@cs.utexas.edu> Sender: jsq@cs.utexas.edu Organization: Sun Microsystems, Mt. View, Ca. Lines: 41 Approved: jsq@cs.utexas.edu (Moderator, John S. Quarterman) X-Submissions: std-unix@uunet.uu.net Submitted-by: loren@Eng.Sun.COM (Loren L. Hart) In article <16478@cs.utexas.edu> guido@cwi.nl (Guido van Rossum) writes: >Submitted-by: guido@cwi.nl (Guido van Rossum) > >peter@ficc.ferranti.com (Peter da Silva) writes: > >>Yes, fork() is a cleaner method of creating new processes. Yes, it takes >>a fairly complex calling sequence to get spawn() to have anything like >>the functionality of fork()...exec(). But I think it'd be worthwhile to >>let a little heresy in in exchange for making POSIX more palatable to >>folks in poorer environments. > >I know of precedents even in OS'es that support fork(): Amoeba and >Topaz support a variant of what you call spawn(). (Note that the >spawn() functions found in Microsoft C for MS-DOS emulate either just >exec() or fork()+exec()+wait(), which is much less powerful, but >all that MS-DOS can support (last time I looked).) The Ada POSIX Draft currently has some sort of spawn command, since fork is not necessicarily safe with respect to Ada Tasks. I don't rember the specific routine, but it is likely to go through some change before the Ada version of the standard is finalized. I would hope that this spawn capability will be merged back into the 1003.1 standard at some point in the future. ------------------------------------------------------------ Mr. Loren L. Hart The Ada Ace Group, Inc. PO Box 36195 San Jose, CA 95158 loren@cup.portal.com -- ----------------------------------------------------------------------------- Loren L. Hart The Ada Ace Group, Inc loren@cup.portal.com P.O. Box 36195 San Jose, CA 95158 Volume-Number: Volume 22, Number 62