Bugfix for pthread_cond_init

Robert Collins robert.collins@itdomain.com.au
Fri Mar 16 20:44:00 GMT 2001


Changelog:
Saturday Mar 17 3:45 2001 Robert Collins <rbtcollins@hotmail.com>
    * thread.cc MTinterface::CreateCond check for null attr pointer.

Index: cygwin/thread.cc
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/thread.cc,v
retrieving revision 1.17
diff -u -p -r1.17 thread.cc
--- thread.cc   2001/03/17 01:14:57     1.17
+++ thread.cc   2001/03/17 04:41:40
@@ -483,7 +483,7 @@ MTinterface::CreateCond (pthread_cond_t
   if (!item)
     system_printf ("cond creation failed");
   item->used = true;
-  item->shared = attr->shared;
+  item->shared = attr ? attr->shared: PTHREAD_PROCESS_PRIVATE;
   item->mutexitem=NULL;
   item->waiting=0;





More information about the Cygwin-patches mailing list