Mail Archives: djgpp/1996/09/25/09:39:02
On Wed, 25 Sep 1996, Greg Rowinski wrote:
> int main(int argc, char *argv[])
> {
> printf("hallo world!\n");
> execl("m1.exe","m1.exe",NULL);
> return 0;
> }
>
> This program should never stop (and it does when compiled with Borland TC),
The way this works on DJGPP right now is that `execlp' actually calls
`spawnlp' and then exits. Therefore, you just load m1.exe more and more
nested, until all your DOS memory is used up, at which point you get a
GPF from the DPMI server.
I suggest you find another way of achieving what you want, like making a
loop which calls the same program time and again, instead of the
recursive execlp.
- Raw text -