Work the shell: dealing with signals