From: Sebastian Harl Date: Mon, 16 Sep 2013 07:01:59 +0000 (+0200) Subject: utils unixsock: Explicitely enable line-buffering. X-Git-Tag: sysdb-0.1.0~349 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f5db16ff1304244a7781f0fb760328e4c32268fb;p=sysdb.git utils unixsock: Explicitely enable line-buffering. The module is based on that, so say it explicitely. --- diff --git a/src/utils/unixsock.c b/src/utils/unixsock.c index 138205d..256cf9f 100644 --- a/src/utils/unixsock.c +++ b/src/utils/unixsock.c @@ -258,6 +258,9 @@ sdb_unixsock_client_connect(sdb_unixsock_client_t *client) return -1; } + /* enable line-buffering */ + setvbuf(client->fh, NULL, _IOLBF, 0); + client->shutdown = 0; return 0; } /* sdb_unixsock_client_connect */