client: drain text output when exiting
authorJens Axboe <axboe@fb.com>
Wed, 20 Jan 2016 18:22:22 +0000 (11:22 -0700)
committerJens Axboe <axboe@fb.com>
Wed, 20 Jan 2016 18:22:22 +0000 (11:22 -0700)
commit54e62ad43c0432a610b102eb82842176b482d18c
tree9e17f9cefadac66b6ffcdd102692331e7707002c
parent543e2e9d2ebdd26449a3f07934b87c8e1ff35033
client: drain text output when exiting

If we don't, we can lose error messages from the server side. One
example would be for protocol version mismatch - the server will
notify the client, but the client doesn't check for these messages
before exiting.

Signed-off-by: Jens Axboe <axboe@fb.com>
client.c
server.c
server.h