Roland Mainz wrote:
> On 6/26/08, Glenn Fowler <[EMAIL PROTECTED]> wrote:
> >  the AT&T Software Technology ast 2008-06-24 source release
> >  has been posted to the download site
> >         http://www.research.att.com/sw/download/
> >  the notes and changes link has details on the release
> [snip]
> 
> It seems SIGCHLD handling is broken in ast-ksh.2008-06-24:
> -- snip --
> $ trap "print 'got SIGCHILD'" SIGCHLD
> $ sleep 5 &
> [1]     29752
> $
> $
> $
> $
> $
> [1] +  Done                    sleep 5 &
> $ trap
> trap -- $'print \'got SIGCHILD\'' CHLD
> -- snip --
> 
> AFAIK the shell should've printed "got SIGCHLD" near the line with
> "[1] +  Done                    sleep 5 &", right ?

It seems SIGCHLD is broken for non-interactive usage, too.

The following testcase...
$ ksh93 -c 'trap "print got_child" SIGCHLD ; sleep 5 & for ((i=0 ; i <
10 ; i++)) ; do print $i ; sleep 1 ; done ; wait ; print " done"' #
... returns:
-- snip --
0
1
2
3
4
5
6
7
8
9
 done
-- snip --
... but AFAIK it should look like this:
-- snip --
0
1
2
3
4
got_child
5
6
7
8
9
 done
-- snip --


----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) [EMAIL PROTECTED]
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL <currently fluctuating>
 (;O/ \/ \O;)
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to