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>2012-02-14 23:08:20 +0400
committerChristopher Faylor <me@cgf.cx>2012-02-14 23:08:20 +0400
commit4eb5175d905a233eea5651489a1f9698159b9c67 (patch)
tree89ed4c8efac9f1e5c12dc73791535702cef2749c /winsup/cygwin/dtable.cc
parent5401796acfc2b971a2f2c62eb43dab4ba540b0e5 (diff)
* pinfo.cc (_pinfo::set_ctty): Revert 2012-02-07 change to skip function if tty
in question == our ctty. * syscalls.cc (setsid): Avoid two function calls. * dtable.cc (dtable::dup_worker): Remove debugging. * init.cc (search_for): Calculate for every new process rather than using shared value. (threadfunc_ix): Fill in for ever new process rather than sing shared value.
Diffstat (limited to 'winsup/cygwin/dtable.cc')
-rw-r--r--winsup/cygwin/dtable.cc12
1 files changed, 2 insertions, 10 deletions
diff --git a/winsup/cygwin/dtable.cc b/winsup/cygwin/dtable.cc
index f152b82a3..e06936c6a 100644
--- a/winsup/cygwin/dtable.cc
+++ b/winsup/cygwin/dtable.cc
@@ -677,16 +677,8 @@ dtable::dup_worker (fhandler_base *oldfh, int flags)
/* The O_CLOEXEC flag enforces close-on-exec behaviour. */
newfh->set_close_on_exec (!!(flags & O_CLOEXEC));
- debug_printf ("duped '%s' old %p, new %p", oldfh->get_name (), oldfh->get_io_handle (), newfh->get_io_handle ());
-#ifdef DEBUGGING
- debug_printf ("duped output_handles old %p, new %p",
- oldfh->get_output_handle (),
- newfh->get_output_handle ());
- if (oldfh->archetype)
- debug_printf ("duped output_handles archetype old %p, archetype new %p",
- oldfh->archetype->get_output_handle (),
- newfh->archetype->get_output_handle ());
-#endif /*DEBUGGING*/
+ debug_printf ("duped '%s' old %p, new %p", oldfh->get_name (),
+ oldfh->get_io_handle (), newfh->get_io_handle ());
}
}
return newfh;