From: Sebastian Harl Date: Thu, 19 Dec 2013 20:43:59 +0000 (+0100) Subject: client: Let sdb_client_recv() use sdb_proto_select(). X-Git-Tag: sysdb-0.1.0~305 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e0085330cf4694b605b37b15ffbb7e44bf9cad15;p=sysdb.git client: Let sdb_client_recv() use sdb_proto_select(). --- diff --git a/src/client/sock.c b/src/client/sock.c index 66b83a7..a2417ad 100644 --- a/src/client/sock.c +++ b/src/client/sock.c @@ -233,7 +233,8 @@ sdb_client_recv(sdb_client_t *client, while (42) { ssize_t status; - /* XXX: use select */ + if (sdb_proto_select(client->fd, SDB_PROTO_SELECTIN)) + return -1; errno = 0; status = sdb_strbuf_read(buf, client->fd, req);