Subject: Re: [ast-developers] ksh regression: ksh no longer resume suspended  
process
--------

> Hi,
> 
> one our user reported regression in latest ksh version. After testing it 
> seems 2011-02-08 is last working version.
> 
> Reproducer:
> $ diff /etc/services /etc/inittab | less
> press ctrl-z
> $ fg
> 
> process is not resumed in 2011-04-15 and newer versions
> 
> Michal


Try the following patch and let me know if this resolves it.

===================cut here================
--- old/sh/xec.c        Wed Jun  1 18:03:07 2011
+++ new/sh/xec.c        Tue Jun  7 16:20:47 2011
@@ -2963,7 +2963,7 @@
 #else
                myjob = job_post(shp,parent,postid);
 #endif /* SHOPT_BGX */
-               if(job.waitall && (flags&FPOU))
+               if(job.waitall && (flags&FPOU) && !sh_isoption(SH_MONITOR))
                {
                        job.curjobid = myjob+1;
                        if(job.exitval)
===================cut here================

David Korn
[email protected]
_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers

Reply via email to