]> 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:07 +0000 (19:03 -0500)
commitec88ee1ab32b39a53bd64b8b24dda69beab990de
treef493966d0578fb0e5122a610124df38a2278da6a
parentc0497043514e76fcfe8fb4345ad488b05e92e81e
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