Mail Archives: cygwin-developers/2001/09/11/12:38:48
--cL1L9IsW19uYFhL4
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Rob,
On Tue, Sep 11, 2001 at 12:38:01PM -0400, Jason Tishler wrote:
> [snip]
I forgot the patch! Sigh...
Thanks,
Jason
--cL1L9IsW19uYFhL4
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="thread.cc.diff"
Index: thread.cc
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/thread.cc,v
retrieving revision 1.46
diff -u -p -r1.46 thread.cc
--- thread.cc 2001/09/11 11:23:41 1.46
+++ thread.cc 2001/09/11 16:03:55
@@ -533,7 +533,10 @@ pthread_cond::fixup_after_fork ()
if (!win32_obj_id)
api_fatal("failed to create new win32 mutex\n");
if (waiting)
- api_fatal("Forked() while a condition variable has waiting threads.\nReport to cygwin AT cygwin DOT com\n");
+ {
+ waiting = 0;
+ fprintf(stderr, "*** Forked() while a condition variable has waiting threads.\nReport to cygwin AT cygwin DOT com\n");
+ }
}
@@ -663,7 +666,10 @@ pthread_mutex::fixup_after_fork ()
if (!win32_obj_id)
api_fatal("pthread_mutex::fixup_after_fork() failed to create new win32 mutex\n");
if (condwaits)
- api_fatal("Forked() while a mutex has condition variables waiting on it.\nReport to cygwin AT cygwin DOT com\n");
+ {
+ condwaits = 0;
+ fprintf(stderr, "*** Forked() while a mutex has condition variables waiting on it.\nReport to cygwin AT cygwin DOT com\n");
+ }
}
pthread_mutexattr::pthread_mutexattr ():verifyable_object (PTHREAD_MUTEXATTR_MAGIC),
--cL1L9IsW19uYFhL4--
- Raw text -