On Tue, Apr 2, 2013 at 8:24 PM, Glenn Fowler <[email protected]> wrote:
> ksh93 2013-04-02 alpha source posted to
>         http://www.research.att.com/sw/download/alpha/
> the package names and md5 checksums are
>             INIT  00be41621dd981d787de2c4bd7249d78
>          ast-ksh  06ddcdacbe04bbd4708a98aeb4855399
> the md5 sums should match the ones listed on the download page
> if not then don't download
>
> src/cmd/msggen is now in the ast-ksh package
> src/cmd/msgcc was separated out to its own directory
>
> ast-open alpha later this week

CHLD stop/continue traps don't seem to work:
cat test.sh
trap 'printf "CHLD trap, pid=%d, status=%s\n" .sh.sig.pid
"${.sh.sig.code}"' CHLD


{
        print inchild
        for ((i=0 ; i < 10 ; i++ )) ; do
                sleep 1
        done
        print childdone
} &
cpid=$!

sleep 2
kill -STOP $cpid
sleep 2
kill -CONT $cpid
sleep 2
wait
sleep 1

ksh test.sh
~/bin/ksh stoptrap.sh
inchild
childdone
CHLD trap, pid=2902, status=exited

I would expect that the CHLD trap is called three times, once for the
child being stopped, once for the child being resumed (SIGCONT) and
once for the child termination.

Irek
_______________________________________________
ast-developers mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-developers

Reply via email to