summaryrefslogtreecommitdiffstats
path: root/bin/sh/parser.c
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2009-11-21 14:28:32 +0000
committerjilles <jilles@FreeBSD.org>2009-11-21 14:28:32 +0000
commitf225be7d75ed32bd8b760dadf4febdd70444731c (patch)
tree577f16ed2214690de633f6521e07d52dcb58724d /bin/sh/parser.c
parenta85bade2b14950ef85d7eff28bbc53d11842b207 (diff)
downloadFreeBSD-src-f225be7d75ed32bd8b760dadf4febdd70444731c.zip
FreeBSD-src-f225be7d75ed32bd8b760dadf4febdd70444731c.tar.gz
sh: Some changes to stderr flushing:
* increase buffer size from 100 to 256 bytes * remove implied flush from out2str(), in particular this avoids unnecessary flushing in the middle of a -x tracing line * rename dprintf() to out2fmt_flush(), make it flush out2 and use this function in various places where flushing is desired after an error message
Diffstat (limited to 'bin/sh/parser.c')
-rw-r--r--bin/sh/parser.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/sh/parser.c b/bin/sh/parser.c
index 46f5199..5218dc0 100644
--- a/bin/sh/parser.c
+++ b/bin/sh/parser.c
@@ -1563,7 +1563,10 @@ setprompt(int which)
#ifndef NO_HISTORY
if (!el)
#endif
+ {
out2str(getprompt(NULL));
+ flushout(out2);
+ }
}
/*
OpenPOWER on IntegriCloud