diff options
author | 2005-01-31 16:06:54 +0000 | |
---|---|---|
committer | 2005-01-31 16:06:54 +0000 | |
commit | b3d09a3692a4463cb581bb4fde47ee683d8b362b (patch) | |
tree | 042de7e8ec9a9f261b5e7404be2ea5e11184af76 | |
parent | add a bunch of more codecs from var srcs. this makes almost everything from the dmesglog to be resolved proper. most unresolvants are bit-errors on the ac link anyway (diff) | |
download | wireguard-openbsd-b3d09a3692a4463cb581bb4fde47ee683d8b362b.tar.xz wireguard-openbsd-b3d09a3692a4463cb581bb4fde47ee683d8b362b.zip |
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: |