[PATCH] Formalize input/output pipe checking