Code

unixsock plugin: Open two different IO stream handles for reading and writing.
authorSebastian Harl <sh@tokkee.org>
Wed, 26 Mar 2008 08:44:04 +0000 (09:44 +0100)
committerFlorian Forster <octo@huhu.verplant.org>
Wed, 26 Mar 2008 08:44:04 +0000 (09:44 +0100)
commit583b04d5826669eb182cb6ea538cf68266721ccb
tree156f98b75994e789bc5471f64698870f1def231c
parent271529f9b39a00f28d81b3ed40f0fdcab2c795d0
unixsock plugin: Open two different IO stream handles for reading and writing.

Full-duplex standard IO streams are not really supported on sockets.
Mixing input and output functions involves calls to lseek(2) which is
not supported on sockets and thus causes the IO operations to fail.
Opening two IO streams solves the problem.

This is a backport of 43df21461d523023951746ef669f1bb95f61366d.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/unixsock.c