In particular, note that the Pipe we're checking against now *will not* be one we entered the function with, or we would have terminated in the while(pipe && ok) loop above. (or else it was NULL to begin with)