sh: Do not close(-1) if pipe() fails.