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>2005-10-24 19:09:07 +0400
committerChristopher Faylor <me@cgf.cx>2005-10-24 19:09:07 +0400
commit16bbf0cc57288917bca2420513462a0cb9c3ce82 (patch)
tree872f1287fb857f8d30d784b06dc92f1eef89b8e3 /winsup/cygwin/pipe.cc
parent95baaf8819c879ee742e422d761b4617fcccee77 (diff)
* cygheap.h (cygheap_fdenum): Remove start_fd stuff.
(cygheap_fdenum::rewind): Ditto. * pipe.cc (fhandler_pipe::open): Lock fdtab while enumerating. * times.cc (utimes_worker): Ditto.
Diffstat (limited to 'winsup/cygwin/pipe.cc')
-rw-r--r--winsup/cygwin/pipe.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/pipe.cc b/winsup/cygwin/pipe.cc
index 8d16b1742..440e70396 100644
--- a/winsup/cygwin/pipe.cc
+++ b/winsup/cygwin/pipe.cc
@@ -49,7 +49,7 @@ fhandler_pipe::open (int flags, mode_t mode)
sscanf (get_name (), "/proc/%d/fd/pipe:[%d]", &pid, (int *) &pipe_hdl);
if (pid == myself->pid)
{
- cygheap_fdenum cfd;
+ cygheap_fdenum cfd (true);
while (cfd.next () >= 0)
{
if (cfd->get_handle () != pipe_hdl)