pstat = select( gptr->fdcount, &gptr->readfds, &gptr->writefds,
&gptr->execpfds, &delay );
pstat = select( gptr->fdcount, &gptr->readfds, &gptr->writefds,
&gptr->execpfds, &delay );
{ // poll fail or termination signal rcvd
gptr->fdcount = 0; // prevent trying to look at a session
gptr->flags |= GIF_SHUTDOWN; // cause cleanup and exit at end
{ // poll fail or termination signal rcvd
gptr->fdcount = 0; // prevent trying to look at a session
gptr->flags |= GIF_SHUTDOWN; // cause cleanup and exit at end