From c85b76d17db17cb83b3d2aacfb0dda7edaa92f77 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 5 Jun 2021 19:31:12 +0200 Subject: [PATCH] Fix a printing issue when outputting to a block-buffered pipe from a forked child (ie., multiple databases). --- plocate.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/plocate.cpp b/plocate.cpp index 9606d2f..72dbe28 100644 --- a/plocate.cpp +++ b/plocate.cpp @@ -698,6 +698,7 @@ uint64_t do_search_file_in_child(const vector &needles, const std::strin perror("write"); _exit(EXIT_FAILURE); } + fflush(stdout); _exit(EXIT_SUCCESS); } case -1: -- 2.39.2