* bug in execl
@ 2000-01-19 4:24 Jason Moxham
2000-01-19 7:56 ` Chris Faylor
0 siblings, 1 reply; 2+ messages in thread
From: Jason Moxham @ 2000-01-19 4:24 UTC (permalink / raw)
To: cygwin
Bug in execl()
---------------
Under B20.1+gcc-2.95.2 running on NT/98 under a "dos" window (not bash)
prog1.exe consists of
{signal(SIGHUP,SIG_IGN);
//some stuff
execl("prog2.exe","prog2.exe",argv[1],argv[2],argv[3],0);
return 0;}
prog2.exe consists of
{signal(SIGHUP,SIG_IGN);
// stuff
return 0;}
I pretty sure the details of the program don't matter
No problem running it , however using task manager on NT we see that
when prog2.exe is running , prog1.exe is still there when it should be
overwriten .
So a series of execl calls could easily fill up all memory , when the
only memory required is for the program currently executing
Thanks
Jason Moxham
jlm@maths.soton.ac.uk
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: bug in execl
2000-01-19 4:24 bug in execl Jason Moxham
@ 2000-01-19 7:56 ` Chris Faylor
0 siblings, 0 replies; 2+ messages in thread
From: Chris Faylor @ 2000-01-19 7:56 UTC (permalink / raw)
To: Jason Moxham; +Cc: cygwin
On Wed, Jan 19, 2000 at 12:22:13PM +0000, Jason Moxham wrote:
>
>
> Bug in execl()
> ---------------
>
> Under B20.1+gcc-2.95.2 running on NT/98 under a "dos" window (not bash)
>
> prog1.exe consists of
>
> {signal(SIGHUP,SIG_IGN);
> //some stuff
> execl("prog2.exe","prog2.exe",argv[1],argv[2],argv[3],0);
> return 0;}
>
> prog2.exe consists of
>
> {signal(SIGHUP,SIG_IGN);
> // stuff
> return 0;}
>
> I pretty sure the details of the program don't matter
>
> No problem running it , however using task manager on NT we see that
> when prog2.exe is running , prog1.exe is still there when it should be
> overwriten .
>
> So a series of execl calls could easily fill up all memory , when the
> only memory required is for the program currently executing
Sorry. That's the best we can do when emulating exec on Windows.
If you run this under bash or sh you should note that this behavior does
not occur.
cgf
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-01-19 7:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-01-19 4:24 bug in execl Jason Moxham
2000-01-19 7:56 ` Chris Faylor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).