This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

bug in execl


 
 
 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]