www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/01/13/00:39:37

Date: Sat, 13 Jan 1996 13:28:06 -0800 (GMT)
From: Orlando Andico <oandico AT gollum DOT eee DOT upd DOT edu DOT ph>
To: DJGPP Mailing List <djgpp AT delorie DOT com>
Message-ID: <Pine.SOL.3.91.960113132312.12809A-100000@gollum>
MIME-Version: 1.0

Does anyone know why gcc on multitasking systems doesn't have spawn...()? 
(sorry if this isn't related directly to DJGPP...) I use spawn with DJGPP 
all the time... now I want to do the same thing under Linux. But there's 
no spawn. Apparently, the solution is to fork(), do nothing in the child 
(return value == 0) and execve() the _thing_to_be_spawned_ in the parent 
(overwriting momma).

This seems to work, but the problem is, my program is inherently 
single-threaded and needs something from the _thing_that_is_spawned_. But 
due to the fork(), I can't know if the _thing_to_be_spawned_ has done its 
thing yet... (unlike spawn which returns when the _thing..._ has done its 
potty). Any ideas?

Thanks,

---------------------------------------------------------------------------
Orlando A. Andico                Instrumentation, Control, and Robotics Lab
oandico AT gollum DOT eee DOT upd DOT edu DOT ph        Dept of Electrical & Electronics Eng'g
http://gollum.eee.upd.edu.ph:9000/                               UP Diliman
---------------------------------------------------------------------------

- Raw text -


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