From c9629cefe942778a9c440e707e203b135de162ae Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 14 Sep 2005 21:26:15 +0000 Subject: * cygtls.h (san): New structure. (cygtls::andreas): New element. Replaces _myfault and _myfault_errno. (cygtls::fault_guarded): Use andreas. (cygtls::return_from_fault): Ditto. (cygtls::setup_fault): Add a parameter denoting where to store old fault handler, if any and use it to "stack" faults. (cygtls::reset_fault): Restore fault from parameter. (myfault::sebastian): New variable. (myfault::~myfault): Pass sebastian to reset_fault. (myfault::myfault): Store old fault values in sebastian. --- winsup/cygwin/net.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'winsup/cygwin/net.cc') diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc index 910eeca36..3a9684932 100644 --- a/winsup/cygwin/net.cc +++ b/winsup/cygwin/net.cc @@ -938,7 +938,9 @@ cygwin_gethostbyname (const char *name) sig_dispatch_pending (); myfault efault; if (efault.faulted (EFAULT)) - return NULL; +{ console_printf ("OUCH!\n"); + return NULL; +} unsigned char tmp_addr[4]; struct hostent tmp, *h; @@ -969,7 +971,10 @@ cygwin_gethostbyname (const char *name) hostent *res = (hostent *) dup_ent (hostent_buf, h, t_hostent); if (res) - debug_printf ("h_name %s", res); +{ + debug_printf ("h_name %s", res->h_name); +debug_printf ("HERE"); +} else { debug_printf ("dup_ent returned NULL for name %s, h %p", name, h); -- cgit v1.2.3