🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.unix
Article #695

Re: qfork() (The Spawn of spawn())

#695
From: Lenox H. Brassell
Date: Fri, 04 Jan 1991 18:04
21 lines
1419 bytes
Submitted-by: lenox@media-lab.MEDIA.MIT.EDU (Lenox H. Brassell)

In article <16478@cs.utexas.edu>, guido@cwi.nl (Guido van Rossum) writes:
> (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).)
> 

Using Microsoft C under OS/2, you can pass P_NOWAIT as the first
argument to the MSC spawn() functions, and the child process will run
asynchronously.  The spawn() functions return the child process's PID
in this case.

Although MSC is certainly not a UNIX compiler, this "prior art" might
be a good place to start if POSIX needs a "safe" qfork()+exec() service.


--lenox (lenox@media-lab.mit.edu)

Volume-Number: Volume 22, Number 59
Technical Details
Message-ID: <16521@cs.utexas.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!jsq
References: <16066@cs.utexas.edu> <16271@cs.utexas.edu> <16307@cs.utexas.edu> <16478@cs.utexas.edu> <16478@cs.utexas.edu>,

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!jsq
From: lenox@media-lab.MEDIA.MIT.EDU (Lenox H. Brassell)
Newsgroups: comp.std.unix
Subject: Re: qfork() (The Spawn of spawn())
Summary: MSC spawn() quite nice under OS/2
Message-ID: <16521@cs.utexas.edu>
Date: 4 Jan 91 18:04:40 GMT
References: <16066@cs.utexas.edu> <16271@cs.utexas.edu> <16307@cs.utexas.edu> <16478@cs.utexas.edu> <16478@cs.utexas.edu>,
Sender: jsq@cs.utexas.edu
Organization: MIT Media Lab, Cambridge, MA
Lines: 21
Approved: jsq@cs.utexas.edu (Moderator, John S. Quarterman)
X-Submissions: std-unix@uunet.uu.net