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.
This commit is contained in:
Eli Zaretskii 2013-05-11 17:42:56 +03:00
parent f0529daced
commit 5367d393dd
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2013-05-11 Eli Zaretskii <eliz@gnu.org>
* 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.
2013-05-06 Eli Zaretskii <eliz@gnu.org>
* gnumake.h (GMK_EXPORT) [_WIN32]: Move the dllexport declaration

2
job.c
View File

@ -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);
}
}