Date: Wed, 25 Sep 1996 15:21:43 +0200 (IST) From: Eli Zaretskii To: Greg Rowinski Cc: djgpp mailing list Subject: Re: execl problem In-Reply-To: Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.