#12737: fd passing functionality fails on x86_64
--------------------------------------+------------------------------
Reporter: korli | Owner: axeld
Type: bug | Status: new
Priority: normal | Milestone: Unscheduled
Component: Network & Internet/Stack | Version: R1/Development
Keywords: | Blocked By:
Blocking: | Has a Patch: 0
Platform: x86-64 |
--------------------------------------+------------------------------
Dovecot requires the ability to pass a file descriptor between two
processes.
This is done through local network sockets and looks implemented in Haiku
and even works on x86 (see [http://cgit.haiku-os.org/haiku/tree/src/add-
ons/kernel/network/protocols/unix/unix.cpp#n359 here] )
{{{
gcc -o conftest -std=gnu99 -D_BSD_SOURCE -Wall -W -Wmissing-prototypes
-Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-
function-cast -fno-builtin-strftime -Wstrict-aliasing=2 fdpass.c
conftest.c -lnetwork
}}}
conftest exits with code 2 on x86_64.
Attached are conftest.c and fdpass.c as example of checking the
functionality.
--
Ticket URL: <https://dev.haiku-os.org/ticket/12737>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.