From: "A.Appleyard" To: djgpp AT delorie DOT com Date: Thu, 22 Feb 1996 09:18:11 GMT Subject: spawnlp() vs system() Message-ID: <36087B4381C@fs2.mt.umist.ac.uk> "Michael A. Phelps" wrote this (Subject: spawnlp() vs system()) with each paragraph as one super-long line (which my email reader displays truncated, not folded), so here it is reformatted legibly:- > 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