www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/02/21/13:59:26

Message-ID: <01BB0062.38D68B00@hf2rules.res.jhu.edu.res.jhu.edu>
From: "Michael A. Phelps" <morphine AT blaze DOT cs DOT jhu DOT edu>
To: "'DJGPP'" <djgpp AT delorie DOT com>
Subject: spawnlp() vs system()
Date: Wed, 21 Feb 1996 13:40:52 -0500
MIME-Version: 1.0

	I have a DJGPP v1.11 program that calls a v2 program using the =
spawnlp() function.  However, whenever it tries to spawn this particular =
program, I briefly get a segmentation violation message and execution is =
quickly restored to the calling program.  However, when I replaced the =
spawnlp() function with a system() instead, now it works.  Why the =
difference?
	Yeah, yeah, I know, why I am I still using v1.11?  The machine that =
I've been using for developing for someone else still has v1.11 on it, =
while my machine at home has v2.0, so when I'm over there I have to use =
v1.11.
	I was just curious as to what was the fundamental difference between =
the two function calls that caused one to fail and the other to succeed.
							---Michael Phelps

- Raw text -


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