]> git.sur5r.net Git - openldap/commit
ITS#8118 dosearch: flush stdout
authorThomas Cort <linuxgeek@gmail.com>
Wed, 29 Apr 2015 17:33:53 +0000 (13:33 -0400)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 30 Apr 2015 00:03:24 +0000 (19:03 -0500)
commit19014c1521f83f2d3e0db1aa27378c9888c03298
tree652fc0e8995dcbac1fb95bda409db91d220a497b
parent0fc0f8ac12d5add113c0624965c9bcdbe7139b38
ITS#8118 dosearch: flush stdout

The LDIF output wasn't being explicitly flushed. In certain scenarios,
such as piping the output of a persistent ldapsearch to node.js v0.12
on Mac OS X 10.10.3, the output is unavailable to the process
consuming the search results until the stdio buffer fills (8192 bytes
for example). This can leave the tail end of persistent search results
in the buffer for a long time (until enough output has accumulated).

Explicitly call flush so that the output is immediately available.
clients/tools/ldapsearch.c