Simplify selfpipe.