ignore EINTR signal which causes fwrite failed