author | Sebastian Harl <sh@tokkee.org> | |
Wed, 26 Mar 2008 08:42:56 +0000 (09:42 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Wed, 26 Mar 2008 08:42:56 +0000 (09:42 +0100) | ||
commit | ac03ae49d85c01fe2da58dd78f66db58416d81cc | |
tree | ea08337aff4f101d714f5a595f940483ef5e5d03 | tree | snapshot |
parent | c08e3ed48857ef9997e8ef3bb40c0a982319106b | commit | diff |
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>
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 | diff | blob | history |