Closed steprun closed 4 years ago
if (ok && msg_queue->maxfd < fd) { msg_queue->maxfd = fd; return TRUE; }
应该改为下面更合理 if (ok) { if (msg_queue->maxfd < fd) msg_queue->maxfd = fd; return TRUE; }
Thanks for your report. I have changed the code to:
if (ok) { if (msg_queue->maxfd < fd) { msg_queue->maxfd = fd; } return TRUE; }
if (ok && msg_queue->maxfd < fd) { msg_queue->maxfd = fd; return TRUE; }
应该改为下面更合理 if (ok) { if (msg_queue->maxfd < fd) msg_queue->maxfd = fd; return TRUE; }