if (PR_FD_ISSET(newSock, &rdset))
if (PR_FD_ISSET(newSock, &rdset)) {
static void PRSelectTest(void){    PRFileDesc *listenSocket;    PRNetAddr serverAddr;    if ( (listenSocket = PR_NewTCPSocket()) == NULL) {        if (debug_mode) printf("\tServer error creating listen socket\n");        return;    }    memset(&serverAddr, 0, sizeof(PRNetAddr));    serverAddr.inet.family = AF_INET;    serverAddr.inet.port = PR_htons(PORT);    serverAddr.inet.ip = PR_htonl(INADDR_ANY);    if ( PR_Bind(listenSocket, &serverAddr) == PR_FAILURE) {        if (debug_mode) printf("\tServer error binding to server address\n");        PR_Close(listenSocket);        return;    }    if ( PR_Listen(listenSocket, 128) == PR_FAILURE) {        if (debug_mode) printf("\tServer error listening to server socket\n");        PR_Close(listenSocket);        return;    }    if (debug_mode) printf("Listening on port %d\n", PORT);    {        PRFileDesc *newSock;        PRNetAddr rAddr;        PRInt32 loops = 0;        PR_fd_set rdset;        PRInt32 rv;        PRInt32 bytesRead;        char buf[11];        loops++;        if (debug_mode) printf("Going into accept\n");         newSock = PR_Accept(listenSocket,                               &rAddr,                              PR_INTERVAL_NO_TIMEOUT);	if (newSock) {            if (debug_mode) printf("Got connection!\n");        } else {	    if (debug_mode) printf("PR_Accept failed: error code %d\n", PR_GetError());		else Test_Result (FAIL);        }        PR_FD_ZERO(&rdset);        PR_FD_SET(newSock, &rdset);        if (debug_mode) printf("Going into select \n");        rv = PR_Select(0, &rdset, 0, 0, PR_INTERVAL_NO_TIMEOUT);        if (debug_mode) printf("return from select is %d\n", rv);        if (PR_FD_ISSET(newSock, &rdset))            if (debug_mode) printf("I can't believe it- the socket is ready okay!\n");        else            if (debug_mode) printf("Damn; the select test failed...\n");			else Test_Result (FAIL);        strcpy(buf, "XXXXXXXXXX");        bytesRead = PR_Recv(newSock, buf, 10, 0, PR_INTERVAL_NO_TIMEOUT);	buf[10] = '\0';        if (debug_mode) printf("Recv completed with %d bytes, %s\n", bytesRead, buf);        PR_Close(newSock);    }}