user@gentoo-zen2700x> for sh in zsh bash dash "busybox ash"
do
$sh test.sh &; sleep 0.5; pid=$(cat sleep.pid); kill -STOP $pid; sleep 0.5; kill -CONT $pid; wait $!
$sh test.sh &; sleep 0.5; pid=$(cat sleep.pid); kill $pid
done 2>/dev/null| grep '^status'
status: 147
status: 143
status: 0
status: 143
status: 128
status: 143
status: 0
status: 143
And fun thing, dash exits immediatly when sleep receives SIGSTOP. Fuck this shit.