Hi! ----
Is it correct that the "wait" builtin returns with a zero exit code when it receives a signal without the matching child process being done like this: -- snip -- $ ksh -c 'trap "echo gotrtsig" RTMIN ; p=$$ ; (for ((i=0 ; i < 3 ; i++ )) ; do sleep 1 ; kill -RTMIN $p 2>/dev/null ; done) & wait ; echo $?' gotrtsig 0 -- snip -- bash4 for example returns a non-zero exit code in this case: -- snip -- $ bash --posix -c 'trap "echo gotrtsig" RTMIN ; p=$$ ; (for ((i=0 ; i < 3 ; i++ )) ; do sleep 1 ; kill -RTMIN $p 2>/dev/null ; done) & wait ; echo $?' gotrtsig 162 -- snip -- Who is correct ? ---- Bye, Roland -- __ . . __ (o.\ \/ /.o) [email protected] \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /==\ O\ TEL +49 641 3992797 (;O/ \/ \O;) _______________________________________________ ast-users mailing list [email protected] https://mailman.research.att.com/mailman/listinfo/ast-users
