From 5bba0cb5a346fb1f16caa2ca30c71a2a17a569da Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 11 May 2001 05:11:12 +0000 Subject: [PATCH] * exceptions.cc (handle_exceptions): Don't print message when executing from a cygwin program. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/exceptions.cc | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 5fb17fa7b..c4a29fc6a 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +Fri May 11 01:04:17 2001 Christopher Faylor + + * exceptions.cc (handle_exceptions): Don't print message when executing + from a cygwin program. + 2001-05-10 Egor Duda Christopher Faylor diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index 6c35f39bb..3ddc28361 100644 --- a/winsup/cygwin/exceptions.cc +++ b/winsup/cygwin/exceptions.cc @@ -358,7 +358,6 @@ try_to_debug (bool waitloop) { if (strncmp (p, "CYGWIN=", sizeof ("CYGWIN=") - 1) == 0) { - system_printf ("%s", p); char* q = strstr (p, "error_start") ; /* replace 'error_start=...' with '_rror_start=...' */ if (q) *q = '_' ; @@ -502,7 +501,8 @@ handle_exceptions (EXCEPTION_RECORD *e, void *, CONTEXT *in, void *) { if (status_info[i].code == e->ExceptionCode) { - system_printf ("Exception: %s", status_info[i].name); + if (!myself->ppid_handle) + system_printf ("Exception: %s", status_info[i].name); break; } }