Mail Archives: djgpp/1996/02/21/19:44:52
> 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?
V1's spawn*() tries to run the program directly (to pass the arguments
correctly), and dies because it doesn't know how. system() always
runs it as a regular EXE.
V2 can always run a V1 program correctly, though.
- Raw text -