Fixes issues with kill -STOP $$ in the su'd shell, and setting up signals for the child process properly.