X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=engines%2Fnet.c;h=02314515d4f70866c886bc792a54fdd54fc3b522;hp=c30f7f5bb6131f010c06ac9008bf3a06829b0e7d;hb=a2e1b08afa641078832d69871ae5e404db3e4fc1;hpb=5fdd124a3b811993542825847f207587d5f4661e diff --git a/engines/net.c b/engines/net.c index c30f7f5b..02314515 100644 --- a/engines/net.c +++ b/engines/net.c @@ -179,6 +179,12 @@ static int fio_netio_accept_connections(struct thread_data *td, int fd, } else if (!ret) continue; + /* + * should be impossible + */ + if (!(pfd.revents & POLLIN)) + continue; + for_each_file(td, f, i) { if (f->fd != -1) continue;