author | Sebastian Harl <sh@tokkee.org> | |
Tue, 25 Mar 2008 18:58:20 +0000 (19:58 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Wed, 26 Mar 2008 08:40:15 +0000 (09:40 +0100) | ||
commit | 43df21461d523023951746ef669f1bb95f61366d | |
tree | 36e1e392f89311694430ed4a3fbda5fc718da16b | tree | snapshot |
parent | 0b40e1fbdc404d980cb6b4256d9ff6ba6ab94bb8 | 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.
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.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/unixsock.c | diff | blob | history |