Module Name: src Committed By: sjg Date: Tue Dec 26 20:09:42 UTC 2023
Modified Files: src/usr.bin/make: compat.c Log Message: Move fflush to a point to catch all cases. To generate a diff of this commit: cvs rdiff -u -r1.250 -r1.251 src/usr.bin/make/compat.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/make/compat.c diff -u src/usr.bin/make/compat.c:1.250 src/usr.bin/make/compat.c:1.251 --- src/usr.bin/make/compat.c:1.250 Tue Dec 26 17:12:33 2023 +++ src/usr.bin/make/compat.c Tue Dec 26 20:09:42 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: compat.c,v 1.250 2023/12/26 17:12:33 sjg Exp $ */ +/* $NetBSD: compat.c,v 1.251 2023/12/26 20:09:42 sjg Exp $ */ /* * Copyright (c) 1988, 1989, 1990 The Regents of the University of California. @@ -91,7 +91,7 @@ #include "pathnames.h" /* "@(#)compat.c 8.2 (Berkeley) 3/19/94" */ -MAKE_RCSID("$NetBSD: compat.c,v 1.250 2023/12/26 17:12:33 sjg Exp $"); +MAKE_RCSID("$NetBSD: compat.c,v 1.251 2023/12/26 20:09:42 sjg Exp $"); static GNode *curTarg = NULL; static pid_t compatChild; @@ -400,7 +400,6 @@ Compat_RunCommand(const char *cmdp, GNod * but let others continue. */ printf(" (continuing)\n"); - fflush(stdout); } else { printf("\n"); } @@ -412,9 +411,9 @@ Compat_RunCommand(const char *cmdp, GNod * If we return 0, this will happen... */ printf(" (ignored)\n"); - fflush(stdout); status = 0; } + fflush(stdout); } free(cmdStart);