🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #50239

gcc equivalent of spawn (MSDOS)

#50239
From: Harm Munk
Date: Wed, 03 Nov 1993 19:29
33 lines
2367 bytes
We are in the process of converting gnumake version 3.62 from Un*x to
MSDOS. In doing so, we are using gnumake for MSDOS, version 3.58 as a
working example. Well, not exactly working, because this version of gnumake crashes on MSDOS 6.0. Besides that, it was conceived for Microsoft
C version 5 or 6. We don't want to use that compiler, however, so we're
going for gcc.

But...

To execute an MSDOS command from within gnumake requires some kind of
fork. fork(), however, isn't implemented in the MSDOS version of gcc. We
could try to use system(), but we already noticed that starting gcc with a
call to system() from within an application build with gcc crashes the
system.

So...

What we are looking for is an equivalent of spawn(): a function that
starts a new process and then waits for its completion, but without
being erased from memory or being overlayed by the spawned, fork-ed or
exec-ed process. Has anyone encountered such a problem, and how did
(s)he cope with it.

Please, reply by email.

Thanks in advance,
+----------------------------------------+------------------------------------+
| Harm Munk                              | Building WL 1.5.17                 |
| Philips Research Laboratories          | P.O. Box 80 000                    |
| Knowledge Based Systems                | 5600 JA  Eindhoven                 |
|                                        | The Netherlands                    |
| #include <standard.disclaimer>         | tel. +31 40 74 46 59               |
|                                        | email: munk@prl.philips.nl         |
+----------------------------------------+------------------------------------+
Technical Details
Message-ID: <munk.752354944@prles6b>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!pipex!uknet!mcsun!sun4nl!relay.philips.nl!prle!prles6b!munk

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,95c41416cafe7368,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-11-03 13:06:45 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!pipex!uknet!mcsun!sun4nl!relay.philips.nl!prle!prles6b!munk
From: munk@prl.philips.nl (Harm Munk)
Subject: gcc equivalent of spawn (MSDOS)
Message-ID: <munk.752354944@prles6b>
Summary: I need an equivalent of spawn
Keywords: spawn,exec,MSDOS,gnumake
Sender: news@prl.philips.nl (USENET News System)
Organization: Philips Research Laboratories Eindhoven, Netherlands
Date: Wed, 3 Nov 1993 19:29:04 GMT
Lines: 33