Code

utils unixsock: Explicitely enable line-buffering.
authorSebastian Harl <sh@tokkee.org>
Mon, 16 Sep 2013 07:01:59 +0000 (09:01 +0200)
committerSebastian Harl <sh@tokkee.org>
Mon, 16 Sep 2013 07:01:59 +0000 (09:01 +0200)
The module is based on that, so say it explicitely.

src/utils/unixsock.c

index 138205d936bfc6573d08b99c77246f7c93e103ea..256cf9f7ba7ed56f8917b9110acee9fefdfded15 100644 (file)
@@ -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 */