patch-src_hooks_c 441 B

123456789101112131415161718
  1. $OpenBSD: patch-src_hooks_c,v 1.3 2011/10/01 14:31:04 kurt Exp $
  2. Write output immediately in case user is interacting with a pipeline.
  3. --- src/hooks.c.orig Thu Dec 31 13:40:47 2009
  4. +++ src/hooks.c Thu Sep 8 20:33:02 2011
  5. @@ -29,8 +29,9 @@ void jam_fprintf(FILE *stream, const char *fmt, ...) {
  6. va_start(ap, fmt);
  7. (*vfprintf_hook)(stream, fmt, ap);
  8. -
  9. va_end(ap);
  10. +
  11. + fflush(stream);
  12. }
  13. void jamvm_exit(int status) {