Micah Cowan wrote:
Untrue, actually: _handling_ the signals would not handle them in the
exec'd child (for obvious reasons), but POSIX requires blocked signals
to remain blocked after an exec.
Try the following:
----
#!/bin/sh
trap "" TSTP
exec yes > /dev/null
----
and then try suspending the program with ^Z, with and without the "trap"
line commented out. :)
Interesting... I thought that exec reset all signal handlers to their
default behavior...
_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils