Does anyone have a notion of what the easiest way of doing this is? I feel some combination of wrapping a consumer around a FileDescriptor ought to work, or something similar to the stdio support, but I can't quite reason it out. It is somewhat complicated by the weird behaviour of FIFOs depending on the state of the other end.