delete newfile
sinle process pipe
write fd closed, read return 0
read fd closed, write generate SIGPIPE