From 3ee80812fd538f9a3f59ebd20ead544b49cd9e3c Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Sat, 11 Mar 1995 16:57:54 +0000 Subject: [PATCH] Fix syscmd() output out of sync Submitted by: smp@clem.systemsix.com --- usr.bin/m4/eval.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usr.bin/m4/eval.c b/usr.bin/m4/eval.c index 59fde31138b4..f36f41f4805c 100644 --- a/usr.bin/m4/eval.c +++ b/usr.bin/m4/eval.c @@ -170,7 +170,10 @@ register int td; case SYSCTYPE: /* * dosys - execute system command - */ + */ + /* Make sure m4 output is NOT interrupted */ + fflush(stdout); + fflush(stderr); if (argc > 2) sysval = system(argv[2]); break;