From e9e8bbfe808a6e13d350cfd60ce1281a0ce72c9c Mon Sep 17 00:00:00 2001 From: cgf Date: Mon, 8 Dec 2003 06:32:45 +0000 Subject: [PATCH] * thread.cc (pthread::precreate): Delete duplicate setting of cancel_event. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/thread.cc | 9 --------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 63904fa4b4..84def7ec06 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,10 @@ 2003-12-08 Christopher Faylor + * thread.cc (pthread::precreate): Delete duplicate setting of + cancel_event. + +2003-12-08 Christopher Faylor + * fhandler.h (fhandler_tty_slave::ttyname): Use name from pc since it is guaranteed to be accurate. * fhandler_tty.cc (fhandler_tty_slave::open): Increment open_fhs diff --git a/winsup/cygwin/thread.cc b/winsup/cygwin/thread.cc index c0bdb8b0d3..a6b2f99197 100644 --- a/winsup/cygwin/thread.cc +++ b/winsup/cygwin/thread.cc @@ -308,15 +308,6 @@ pthread::precreate (pthread_attr *newattr) } /* Change the mutex type to NORMAL to speed up mutex operations */ mutex.type = PTHREAD_MUTEX_NORMAL; - - cancel_event = ::CreateEvent (&sec_none_nih, TRUE, FALSE, NULL); - if (!cancel_event) - { - system_printf ("couldn't create cancel event, this %p LastError %E", this); - /* we need the event for correct behaviour */ - magic = 0; - return; - } } void -- 2.11.0