www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/09/25/09:39:02

Date: Wed, 25 Sep 1996 15:21:43 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Greg Rowinski <mila AT mach3 DOT polbox DOT com DOT pl>
Cc: djgpp mailing list <djgpp AT delorie DOT com>
Subject: Re: execl problem
In-Reply-To: <Pine.LNX.3.95.960925062418.560B-100000@mach3.polbox.com.pl>
Message-Id: <Pine.SUN.3.91.960925151744.14328F-100000@is>
Mime-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019