Checking the return value of pipe()