update chapter07 sigpipe handler