Commit 729c178c authored by Jan Včelák's avatar Jan Včelák 🚀

server: remove useless branch after polling

parent 6a25466f
......@@ -250,10 +250,8 @@ static void event_loop(server_t *server, char *socket)
/* Control interface. */
struct pollfd pfd = { .fd = sock, .events = POLLIN };
int ret= poll(&pfd, 1, -1);
if (ret == -1 && errno == EINTR) {
continue;
} else if (ret > 0) {
int ret = poll(&pfd, 1, -1);
if (ret > 0) {
ret = remote_process(server, sock, buf, buflen);
if (ret == KNOT_CTL_ESTOP) {
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment