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
path: root/winsup
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2011-05-30 21:16:24 +0400
committerChristopher Faylor <me@cgf.cx>2011-05-30 21:16:24 +0400
commitde3c57f06e3b8244c44e7203dc50cfad8a68f130 (patch)
tree12e5b0f64b965f0fe4d372fb034e5e9bdda9015c /winsup
parent6642f7daa369ede921ce92eb819f01dc58b18b30 (diff)
* dll_init.cc (dll_list::append): Eliminate increment of unused tot variable.
* dll_init.h (dll_list::tot): Delete. (dll_list::populate_all_deps): Delete undefined function. * fhandler.cc (fhandler_base_overlapped::wait_overlapped): Move EPIPE handling under error condition.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog10
-rw-r--r--winsup/cygwin/dll_init.cc1
-rw-r--r--winsup/cygwin/dll_init.h2
-rw-r--r--winsup/cygwin/fhandler.cc10
4 files changed, 16 insertions, 7 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 3406ed3da..b9c7453f3 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,13 @@
+2011-05-30 Christopher Faylor <me.cygwin2011@cgf.cx>
+
+ * dll_init.cc (dll_list::append): Eliminate increment of unused tot
+ variable.
+ * dll_init.h (dll_list::tot): Delete.
+ (dll_list::populate_all_deps): Delete undefined function.
+
+ * fhandler.cc (fhandler_base_overlapped::wait_overlapped): Move EPIPE
+ handling under error condition.
+
2011-05-30 Ryan Johnson <ryan.johnson@cs.utoronto.ca>
* dll_init.cc (reserve_upto): Remove.
diff --git a/winsup/cygwin/dll_init.cc b/winsup/cygwin/dll_init.cc
index 9994ef8f1..0258b3549 100644
--- a/winsup/cygwin/dll_init.cc
+++ b/winsup/cygwin/dll_init.cc
@@ -199,7 +199,6 @@ dll_list::append (dll* d)
d->next = NULL;
d->prev = end;
end = d;
- tot++;
}
void dll_list::populate_deps (dll* d)
diff --git a/winsup/cygwin/dll_init.h b/winsup/cygwin/dll_init.h
index bf0265303..3f50dcab0 100644
--- a/winsup/cygwin/dll_init.h
+++ b/winsup/cygwin/dll_init.h
@@ -80,7 +80,6 @@ class dll_list
static muto protect;
public:
dll start;
- int tot;
int loaded_dlls;
int reload_on_fork;
dll *operator [] (const PWCHAR name);
@@ -92,7 +91,6 @@ public:
void reserve_space ();
void load_after_fork_impl (HANDLE, dll* which, int retries);
dll *find_by_modname (const PWCHAR name);
- void populate_all_deps ();
void populate_deps (dll* d);
void topsort ();
void topsort_visit (dll* d, bool goto_tail);
diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc
index deb1ade16..b64b09047 100644
--- a/winsup/cygwin/fhandler.cc
+++ b/winsup/cygwin/fhandler.cc
@@ -1887,13 +1887,15 @@ fhandler_base_overlapped::wait_overlapped (bool inres, bool writing, DWORD *byte
HANDLE h = writing ? get_output_handle () : get_handle ();
CancelIo (h);
ResetEvent (get_overlapped ());
- if (res == overlapped_error)
- __seterrno_from_win_error (err);
*bytes = (DWORD) -1;
+ if (res == overlapped_error)
+ {
+ __seterrno_from_win_error (err);
+ if (writing && (err == ERROR_NO_DATA || err == ERROR_BROKEN_PIPE))
+ raise (SIGPIPE);
+ }
}
- if (writing && (err == ERROR_NO_DATA || err == ERROR_BROKEN_PIPE))
- raise (SIGPIPE);
return res;
}