cc: ast-developers@lists.research.att.com Subject: Re: [ast-developers] ksh fork bomb --------
Here is a fix for the form bomb. Let me know if you have any problem. If you don't I will put this in the next alpha. ==================cut here===================== --- old/sh/fault.c Mon Mar 11 17:12:27 2013 +++ new/sh/fault.c Tue Mar 19 16:22:07 2013 @@ -473,7 +473,7 @@ if(pp && pp->mode>1) cursig = -1; #ifdef SIGTSTP - if(shp->trapnote&SH_SIGTSTP) + if((shp->trapnote&SH_SIGTSTP) && sh_isoption(shp,SH_MONITOR)) { /* ^Z detected by the shell */ shp->trapnote = 0; ==================cut here===================== David Korn d...@research.att.com _______________________________________________ ast-developers mailing list ast-developers@lists.research.att.com http://lists.research.att.com/mailman/listinfo/ast-developers