From 5367d393ddb36fc8b3f358418d5c9f2b9f01d2fe Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 11 May 2013 17:42:56 +0300 Subject: Avoid printing stdout and stderr messages without a newline between them. job.c (child_out): Output the newline following the message before fllush-ing the stream. Avoids displaying the following failure message, which goes to stderr, on the same line. --- job.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'job.c') diff --git a/job.c b/job.c index daf3efe..106c518 100644 --- a/job.c +++ b/job.c @@ -503,8 +503,8 @@ child_out (const struct child *child, const char *msg, int out) { FILE *f = out ? stdout : stderr; fputs (msg, f); - fflush (f); putc ('\n', f); + fflush (f); } } -- cgit v1.2.3