This is the mail archive of the
mailing list for the glibc project.
The recent thread sunrpc change breaks statd
- To: GNU C Library <libc-alpha at sourceware dot cygnus dot com>
- Subject: The recent thread sunrpc change breaks statd
- From: "H . J . Lu" <hjl at lucon dot org>
- Date: Sun, 6 May 2001 20:35:52 -0700
The recent sunrpc change breaks statd which is the part of nfs-utils.
statd is a special rpc daemon. It has its own vesion of svc_run and
uses svc_fdset. The problem is in sunrpc/rpc_thread.c:
struct rpc_thread_variables *tvp;
tvp = __rpc_thread_variables ();
if (tvp == &rpc_default)
in statd. But __rpc_thread_variables () doesn't return &rpc_default.
As the result, __rpc_thread_svc_fdset () doesn't return &svc_fdset
for this special single thread rpc daemon.
The code in sunrpc/rpc_thread.c doesn't look right to me, at least
for non-threaded applications. I will try to come up with a patch