change the pipe descriptor output to include 'r' or 'w' to explicitly indicate it's open for reading or writing, similarily to "regular" descriptors