From: "Randall S. Becker" <rsbec...@nexbridge.com>

Call setbuf(stream,NULL) to force pipe flushes not enabled by
default on the NonStop platform in wrapper.c. This may be extended
in future to a configure option.

Signed-off-by: Randall S. Becker <rsbec...@nexbridge.com>
---
 wrapper.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/wrapper.c b/wrapper.c
index d20356a77..5b05a9162 100644
--- a/wrapper.c
+++ b/wrapper.c
@@ -403,6 +403,9 @@ FILE *xfdopen(int fd, const char *mode)
        FILE *stream = fdopen(fd, mode);
        if (stream == NULL)
                die_errno("Out of memory? fdopen failed");
+#ifdef __TANDEM
+       setbuf(stream,NULL);
+#endif
        return stream;
 }
 
-- 
2.16.0.31.gf1a482c

Reply via email to