FD_ZERO it.
* rpc_commondata.c: Do not assume what the structure of an
fd_set looks like. Add variable gssrpc_svc_fdset_init to
determine if initialized.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13585
dc483132-0cff-0310-8789-
dd5450dbe970
+2001-07-08 Ezra Peisach <epeisach@mit.edu>
+
+ * svc.c (xprt_register): If svc_fdset has not been initilized,
+ FD_ZERO it.
+
+ * rpc_commondata.c: Do not assume what the structure of an fd_set
+ looks like. Add variable gssrpc_svc_fdset_init to determine if
+ initialized.
+
2001-07-06 Ezra Peisach <epeisach@mit.edu>
* auth_unix.c: In case GETGROUPS_T is not defined, default to int.
*/
struct opaque_auth _null_auth = {0};
#ifdef FD_SETSIZE
-fd_set svc_fdset = {0};
+fd_set svc_fdset; /* Will be zeroed in data segment */
+int gssrpc_svc_fdset_init = 0;
#else
int svc_fds = 0;
#endif /* def FD_SETSIZE */
#ifdef FD_SETSIZE
static SVCXPRT **xports;
static int max_xport = 0;
+extern int gssrpc_svc_fdset_init;
#else
#define NOFILE 32
register int sock = xprt->xp_sock;
#ifdef FD_SETSIZE
+ if (gssrpc_svc_fdset_init == 0) {
+ FD_ZERO(&svc_fdset);
+ gssrpc_svc_fdset_init++;
+ }
if (xports == NULL) {
xports = (SVCXPRT **)
mem_alloc(FD_SETSIZE * sizeof(SVCXPRT *));