summaryrefslogtreecommitdiff
path: root/client.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2017-11-30 13:27:40 -0700
committerJens Axboe <axboe@kernel.dk>2017-11-30 13:27:40 -0700
commit47714d68b54de5f9520f8bef520d1451d8eddc04 (patch)
treeef975023478a0c2750c2dd0d1e43db39fc1b7e7e /client.h
parent5c81ff5e2642b5891307c02d5a7aa8d2b08715ab (diff)
downloadfio-47714d68b54de5f9520f8bef520d1451d8eddc04.tar.gz
fio-47714d68b54de5f9520f8bef520d1451d8eddc04.tar.bz2
client: ignore a client timeout, if the last thing we saw as a trigger
If triggers are used and are fatal to the fio backend (killing power, etc), then we don't have time to process the stop/quit commands. We expect the client to go away, but the backend can't let us know. If the last thing we saw was a trigger command, don't exit in error if the client times out and goes away. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'client.h')
-rw-r--r--client.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/client.h b/client.h
index 394b685d..90082a34 100644
--- a/client.h
+++ b/client.h
@@ -39,6 +39,7 @@ struct fio_client {
int port;
int fd;
unsigned int refs;
+ unsigned int last_cmd;
char *name;