Code

Moved core/error to utils/error.
[sysdb.git] / src / utils / unixsock.c
index 8c0abb2558a7c233bc4836ae3d8e953e91eede61..59bf5631f451e4f401883532e8cd9b1dc4c8791d 100644 (file)
@@ -25,8 +25,8 @@
  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#include "utils/unixsock.h"
 #include "utils/error.h"
+#include "utils/unixsock.h"
 
 #include <assert.h>
 #include <errno.h>
@@ -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 */