projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3565182
)
net engine: termination fixes
author
Jens Axboe
<jens.axboe@oracle.com>
Mon, 19 Jan 2009 11:38:27 +0000
(12:38 +0100)
committer
Jens Axboe
<jens.axboe@oracle.com>
Mon, 19 Jan 2009 11:38:27 +0000
(12:38 +0100)
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 afb3265c6ada813179fa12853ec121d6632ab378..700f1626be8640c43f373375af0c54942b63e1e0 100644
(file)
--- a/
engines/net.c
+++ b/
engines/net.c
@@
-43,7
+43,7
@@
static int poll_wait(struct thread_data *td, int fd, short events)
ret = poll(&pfd, 1, -1);
if (ret < 0) {
if (errno == EINTR)
-
continue
;
+
break
;
td_verror(td, errno, "poll");
return -1;
@@
-55,8
+55,6
@@
static int poll_wait(struct thread_data *td, int fd, short events)
if (pfd.revents & events)
return 1;
- else if (td->terminate)
- return 1;
return -1;
}