SERVER-8269 use sigaction instead of signal for SIGPIPE in the shell