X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fnetserv.c;h=6ff6e52e089049eea9c1fd8955bcbe540fc1c2dc;hb=40a487dcc5d3028343ff9123a72b8b3839a42861;hp=5b32ba044322f5d825f080b5c0bacb53f18f95d3;hpb=e5c5bf5c4a76a04f9bf64e92227bf2ef969fd25c;p=rocksndiamonds.git diff --git a/src/netserv.c b/src/netserv.c index 5b32ba04..6ff6e52e 100644 --- a/src/netserv.c +++ b/src/netserv.c @@ -617,10 +617,13 @@ void NetworkServer(int port, int serveronly) tv.tv_sec = 0; tv.tv_usec = 500000; if ((sl = select(mfd + 1, &fds, NULL, NULL, &tv)) < 0) + { if (errno != EINTR) syserr("select"); - else continue; - + else + continue; + } + if (sl < 0) continue;