Check return value of pipe() call