Bug#338290: Can't start X twice on GNU/kFreeBSD
For your information :
sarge::Info::libc::sockets::localnamespace::details has :
wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
You should compute the LENGTH parameter for a socket address in the
local namespace as the sum of the size of the `sun_family' component
and the string length (_not_ the allocation size!) of the file name
string. This can be done using the macro `SUN_LEN':
-- Macro: int SUN_LEN (_struct sockaddr_un *_ PTR)
The macro computes the length of socket address in the local
namespace.
wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
I have no idea why this is.
have fun !
Siward de Groot
(home.wanadoo.nl/siward)
On Tuesday 10 January 2006 22:11, Petr Salinger wrote:
> Hi David.
>
> > Have you seen the annotation that Aurelien did on Jan 2nd
> > in the upstream bug report?:
>
> Yes, it is another approach to fix it.
> In fact, this coding style is already used i.e. in
> extras/Mesa/src/glx/mini/miniglx_events.c
>
> GNU/kFreeBSD has problem with
> namelen = strlen(sockname.sun_path) + sizeof(sockname.sun_family);
>
> It will work with either
> namelen = strlen(sockname.sun_path) + offsetof(struct sockaddr_un,
> sun_path); or
> namelen = sizeof(struct sockaddr_un);
>
> The first fix is closer to previous code, both are correct.
>
> > Anyway, I am applying your patch, as it is correct for you.
>
> Thanks
>
> Petr
--
-----------------------------------------------------------------------------
Stuur mij alstublieft geen Word documenten,
want ik gebruik geen Windows maar Linux :-)
Reply to: