components/ksh93/patches/235-19907453.patch
changeset 5129 5431772f7235
parent 4268 d723f8ed85fe
equal deleted inserted replaced
5128:218234c0062c 5129:5431772f7235
       
     1 This fix is from the community, details in the following location.
       
     2 http://lists.research.att.com/pipermail/ast-developers/2013q1/002323.html
       
     3 
       
     4 --- INIT.2011-02-08.old/src/cmd/ksh93/sh/fault.c	2014-10-29 12:41:23.239718243 -0700
       
     5 +++ INIT.2011-02-08/src/cmd/ksh93/sh/fault.c	2014-10-29 14:03:09.196910448 -0700
       
     6 @@ -519,7 +519,7 @@ void sh_exit(register int xno)
       
     7  	if(pp && pp->mode>1)
       
     8  		cursig = -1;
       
     9  #ifdef SIGTSTP
       
    10 -	if(shp->trapnote&SH_SIGTSTP)
       
    11 +	if(shp->trapnote&SH_SIGTSTP && job.jobcontrol)
       
    12  	{
       
    13  		/* ^Z detected by the shell */
       
    14  		shp->trapnote = 0;