From 76821a692c914c958ec43d402d42b40abfdc892f Mon Sep 17 00:00:00 2001 From: ache Date: Sat, 11 Mar 1995 16:57:54 +0000 Subject: 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(-) (limited to 'usr.bin') diff --git a/usr.bin/m4/eval.c b/usr.bin/m4/eval.c index 59fde31..f36f41f 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; -- cgit v1.1