Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-10-20 05:02:18 +0400
committerChristopher Faylor <me@cgf.cx>2004-10-20 05:02:18 +0400
commitf054a20f1ab3cedd4eed61c227e3b90bad96c93d (patch)
tree4d52bbc8fdb91e015ee519c7b7967c30bd86efaf /winsup/cygwin/fhandler_console.cc
parentf9dcc467ccff78d5de67fb6c2582731424e8da82 (diff)
* fhandler_console.cc (fhandler_console::fixup_after_exec): Fix error message.
Diffstat (limited to 'winsup/cygwin/fhandler_console.cc')
-rw-r--r--winsup/cygwin/fhandler_console.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc
index 327219d34..81f495f01 100644
--- a/winsup/cygwin/fhandler_console.cc
+++ b/winsup/cygwin/fhandler_console.cc
@@ -1792,16 +1792,16 @@ fhandler_console::fixup_after_exec ()
cygheap->open_fhs--; /* The downside of storing this in cygheap. */
if (!open (O_NOCTTY | get_flags (), 0))
{
- int sawerr = 0;
+ bool sawerr = false;
if (!get_io_handle ())
{
system_printf ("error opening input console handle after exec, errno %d, %E", get_errno ());
- sawerr = 1;
+ sawerr = true;
}
if (!get_output_handle ())
{
- system_printf ("error opening input console handle after exec, errno %d, %E", get_errno ());
- sawerr = 1;
+ system_printf ("error opening output console handle after exec, errno %d, %E", get_errno ());
+ sawerr = true;
}
if (!sawerr)