Swap return value of pipes::init Fixes #4501

review? @brson