delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/06/24/10:09:41

X-Authentication-Warning: kendall.sfbr.org: jeffw set sender to jeffw AT darwin DOT sfbr DOT org using -f
Date: Mon, 24 Jun 2002 09:07:59 -0500
From: JT Williams <jeffw AT darwin DOT sfbr DOT org>
To: djgpp AT delorie DOT com
Subject: Re: Fork
Message-ID: <20020624140759.GB13593@kendall.sfbr.org>
Mail-Followup-To: djgpp AT delorie DOT com
References: <3d15c022$0$26988$9b622d9e AT news DOT freenet DOT de> <3D15C638 DOT EE5797F9 AT phekda DOT freeserve DOT co DOT uk>
Mime-Version: 1.0
In-Reply-To: <3D15C638.EE5797F9@phekda.freeserve.co.uk>
User-Agent: Mutt/1.3.27i
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

-: > Are there any fork() libraries for DJGPP that I could try? Every time I
-: > build an app that calls for fork(), I run out of memory. I read a FAQ that
-: > said that fork() is not implemented in DJGPP.

For some applications, it may be sufficient to emulate the call to
fork/waitpid with a call to spawn, e.g., replace

foo(); fork(); waitpid(); bar();

with

foo(); spawn(); bar();

This suggestion is due to Alain Magloire; see the thread "`void main' in
Gnu packages---?!" (2000 Jan 13).

I don't know enough about this, but perhaps this simple idiom would be
better that just the nop for djgpp fork?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019