[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using spiped with a FIFO



On 02/21/14 10:09, Peter Waller wrote:
> Not realising the difference between a unix socket and a fifo I tried setting
> `spiped`'s `-t` parameter to a named pipe.
> 
> Unfortunately spipe just exits and spiped appears to do nothing in this case.
> strace reveals that it tries to connect() to the fifo which isn't allowed:
> 
>> connect(8, {sa_family=AF_FILE, path="/home/pwaller/tmp/spiped/testfifo"}, 110)
> = -1 ECONNREFUSED (Connection refused)
> 
> Any chance spiped could support writing to a fifo or is this fraught for some
> reason?

A fifo is one-way, and the spiped protocol requires two-way communication during
the initial handshake.

Why do you want to use a fifo anyway?

-- 
Colin Percival
Security Officer Emeritus, FreeBSD | The power to serve
Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid