NULL,
};
+static struct acceptor *vca_act;
+
static unsigned xids;
static pthread_t vca_thread_acct;
return;
}
}
- vca_acceptors[0]->recycle(sp);
+ vca_act->recycle(sp);
}
/*--------------------------------------------------------------------*/
xids = random();
/* XXX: Add selector mechanism at some point */
- if (vca_acceptors[0]->name == NULL) {
+ vca_act = vca_acceptors[0];
+
+ if (vca_act->name == NULL) {
fprintf(stderr, "No acceptor in program\n");
exit (2);
}
- vca_acceptors[0]->init();
+ vca_act->init();
AZ(pthread_create(&vca_thread_acct, NULL, vca_acct, NULL));
}