[Twisted-Python] Opening a fifo
Phil Mayers
p.mayers at imperial.ac.uk
Fri Nov 14 02:47:35 MST 2008
Paul Thomas wrote:
> Hi,
>
> 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.
Either of:
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
mailing list