Skip to content
Snippets Groups Projects
Commit 141d25dd authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

FD_ISSET is not necessary

parent ee5fb92e
No related branches found
No related tags found
No related merge requests found
...@@ -171,9 +171,7 @@ class GmshSocket{ ...@@ -171,9 +171,7 @@ class GmshSocket{
FD_SET(s, &rfds); FD_SET(s, &rfds);
// select checks all IO descriptors between 0 and its first arg, minus 1; // select checks all IO descriptors between 0 and its first arg, minus 1;
// hence the +1 below // hence the +1 below
int ret = select(s + 1, &rfds, NULL, NULL, &tv); return select(s + 1, &rfds, NULL, NULL, &tv);
if(ret > 0 && FD_ISSET(s, &rfds)) return 1;
return ret;
} }
void SendMessage(int type, int length, const void *msg) void SendMessage(int type, int length, const void *msg)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment