diff options
author | Robert Nagy <robert@cvs.openbsd.org> | 2005-01-31 16:06:55 +0000 |
---|---|---|
committer | Robert Nagy <robert@cvs.openbsd.org> | 2005-01-31 16:06:55 +0000 |
commit | 26d13956e6e4a4e21d7eb82b2856a81e55ee5fc8 (patch) | |
tree | 7385d1e4ce28c080abec606b40c54cd329d85be7 | |
parent | bccae65675c3b139cc04d4819a1e12aa7011f940 (diff) |
use fflush(stdout) before system() so we won't miss any
wanted output; from Andreas Burmester <buster_hh@gmx.net>
ok espie@
-rw-r--r-- | usr.bin/m4/eval.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/m4/eval.c b/usr.bin/m4/eval.c index 34d8a4e6b10..e2484d42729 100644 --- a/usr.bin/m4/eval.c +++ b/usr.bin/m4/eval.c @@ -1,4 +1,4 @@ -/* $OpenBSD: eval.c,v 1.53 2005/01/21 19:11:02 espie Exp $ */ +/* $OpenBSD: eval.c,v 1.54 2005/01/31 16:06:54 robert Exp $ */ /* $NetBSD: eval.c,v 1.7 1996/11/10 21:21:29 pk Exp $ */ /* @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)eval.c 8.2 (Berkeley) 4/27/95"; #else -static char rcsid[] = "$OpenBSD: eval.c,v 1.53 2005/01/21 19:11:02 espie Exp $"; +static char rcsid[] = "$OpenBSD: eval.c,v 1.54 2005/01/31 16:06:54 robert Exp $"; #endif #endif /* not lint */ @@ -230,8 +230,10 @@ expand_builtin(const char *argv[], int argc, int td) /* * dosys - execute system command */ - if (argc > 2) + if (argc > 2) { + fflush(stdout); sysval = system(argv[2]); + } break; case SYSVTYPE: |