ignore SIGPIPE in wsh

this would be sent to the process whenever write() failed due to the
process dying, before exhausting stdin. write() also returns EPIPE in
this case, which is then handled appropriately.
when stracing, capture longer string lengths