[Twisted-Python] Opening a fifo
p.mayers at imperial.ac.uk
Fri Nov 14 04:47:35 EST 2008
Paul Thomas wrote:
> I've run into a small problem where my twisted application needs to open
> a fifo to talk to another process. On Linux at least, the open blocks
> until the other end of the fifo is opened and this is blocking my reactor.
fd = os.open('thefifo', os.O_RDONLY | os.O_NONBLOCK)
fd = os.open('thefifo', os.O_RDWR)
...will return immediately,
Try "man fifo" for a description of the vagaries.
A listenFIFO would be handy in Twisted. It's tedious doing this manually.
More information about the Twisted-Python