projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c9e06e
)
[PATCH] Network engine poll() paranoia
author
Jens Axboe
<jens.axboe@oracle.com>
Sun, 11 Feb 2007 03:44:02 +0000
(
04:44
+0100)
committer
Jens Axboe
<jens.axboe@oracle.com>
Sun, 11 Feb 2007 03:44:02 +0000
(
04:44
+0100)
A little defensive programming never hurt anyone.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
engines/net.c
patch
|
blob
|
blame
|
history
diff --git
a/engines/net.c
b/engines/net.c
index c30f7f5bb6131f010c06ac9008bf3a06829b0e7d..02314515d4f70866c886bc792a54fdd54fc3b522 100644
(file)
--- 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;