tests: send the trap to stdout after the fork
tests: send the trap to stdout after the fork

When notifying the trap number, use stdout instead of stderr (as done by
the other notifications) and send it *after* the fork or the subprocess
call.

ntd/adg,ntd/adg