Discussion:
Using spiped with a FIFO
Peter Waller
2014-02-21 18:09:19 UTC
Permalink
Hi All,

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
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?

Thanks,

- Peter
Colin Percival
2014-02-21 22:18:33 UTC
Permalink
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.
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
Loading...