Check error on select

This commit is contained in:
James R 2019-04-26 13:06:26 -07:00
parent 4d739fe7a5
commit aa4ce2b2d1

View file

@ -701,6 +701,8 @@ static INT32 AddToMasterServer(boolean firstadd)
M_Memcpy(&tset, &wset, sizeof (tset)); M_Memcpy(&tset, &wset, sizeof (tset));
res = select(255, NULL, &tset, NULL, &select_timeout); res = select(255, NULL, &tset, NULL, &select_timeout);
if (res == -1)
return ConnectionFailedwerrno(errno);
if (res == 0)/* nothing selected */ if (res == 0)/* nothing selected */
{ {
/* /*