bug-hurd
[Top][All Lists]
Advanced

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

Defualt socket server overriding


From: Wei Shen
Subject: Defualt socket server overriding
Date: Tue, 19 Jun 2007 23:20:27 +0800

Hi all,
 
I once tried designing a default server overriding (see task #6612 ) mechanism for Hurd. However, it turns to be that a general mechanism seems to be too aggressive for me. So I decide to narrow the range of the task to a small set of specific servers - socket servers - first as some of you suggest.
 
I list a straightforward approach below.
 
(1) Add a set of new environment variables, e.g. PFINETSERVER for the pf_inet server and PFLOCALSERVER for the pf_local server.
(2) Hack _hurd_socket_server in Glibc to check for these environment variables. If one of them is set (to a list of overriding server names), try the server names specified by its value prior to the default socket server name, in the order of their appearance in the overriding list until successfully getting a server port.
 
Please provide your opinions. If it makes sense, I would like to have a try on the work once more.
 
Thanks,
 
Wei Shen

reply via email to

[Prev in Thread] Current Thread [Next in Thread]