Changes to named pipe functions based on code review.