[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: glib2.0 test gio/tests/socket fails, BUG?



Svante Signell, le Fri 13 Sep 2013 13:19:05 +0200, a écrit :
> Thanks fot the hint. Is there no easy way to find out which server
> version is called?

That's one of the whole point of having RPCs interposable. You have to
know which path is accessed, and with sysopts on it you'll know what
translator is running on it.

> E.g. for sockets pflocal is used, for PF_UNIX pfinet for PF_INET* etc.

See the socket() function in glibc:
./glibc/sysdeps/mach/hurd/socket.c

it calls _hurd_socket_server, which opens _SERVERS_SOCKET "/" af, where
af is PF_UNIX, PF_INET etc.  Since PF_UNIX is 1, that ends up being
/servers/socket/1. See fsysopts and you'll know the translator.

> Additionally, doesn't rpctrace bail out for programs forking?

That has been fixed some time ago.

> Is there any documentation to rpctrace except the source code?

Read the source, Luke.

Samuel


Reply to: