projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93eee04
)
poll: break on EINTR without complaining
author
Jens Axboe
<axboe@kernel.dk>
Mon, 3 Oct 2011 19:09:14 +0000
(21:09 +0200)
committer
Jens Axboe
<axboe@kernel.dk>
Mon, 3 Oct 2011 19:09:14 +0000
(21:09 +0200)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
server.c
patch
|
blob
|
blame
|
history
diff --git
a/server.c
b/server.c
index 3008b8bc91bd29bc05025a64e12e6bfd112774ab..6ff1033a52bd604ba4836c08d4bb22ab9a9ed47d 100644
(file)
--- a/
server.c
+++ b/
server.c
@@
-128,6
+128,8
@@
struct fio_net_cmd *fio_net_recv_cmd(int sk)
do {
ret = poll(&pfd, 1, 100);
if (ret < 0) {
+ if (errno == EINTR)
+ break;
log_err("fio: poll: %s\n", strerror(errno));
break;
} else if (!ret)