mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-06 16:08:43 +02:00
Check the C stdout and stderr streams for validity, instead of what
2003-01-01 Tor Lillqvist <tml@iki.fi> * glib/gmessages.c (ensure_stdout_valid, ensure_stderr_valid): Check the C stdout and stderr streams for validity, instead of what GetStdHandle() returns.
This commit is contained in:
committed by
Tor Lillqvist
parent
ea09218038
commit
1377e3d1e7
@@ -3,6 +3,8 @@
|
||||
* glib/gmessages.c (ensure_stderr_valid): New function, parallel
|
||||
to ensure_stdout_valid(). #defined as empty on Unix. Move the
|
||||
alloc_console_called static flag inside these two functions.
|
||||
(ensure_stdout_valid, ensure_stderr_valid): Check the C stdout and
|
||||
stderr streams for validity, instead of what GetStdHandle() returns.
|
||||
(mklevel_prefix): Do use either stderr or stdout on Windows,
|
||||
too. Otherwise g_warning() messages (that are just warnings, by
|
||||
definition) will get mixed with proper stdout output. Noticed in
|
||||
|
Reference in New Issue
Block a user