Mail Archives: djgpp/1996/02/22/04:31:30
"Michael A. Phelps" <morphine AT blaze DOT cs DOT jhu DOT edu> 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
- Raw text -