Blocked SIGPIPE signal and added Rio_writen_new