Author: davidxu
Date: Sat Sep 25 09:43:24 2010
New Revision: 213163
URL: http://svn.freebsd.org/changeset/base/213163

Log:
  Only access unwind_disabled when _PTHREAD_FORCED_UNWIND is defined.

Modified:
  head/lib/libthr/thread/thr_clean.c

Modified: head/lib/libthr/thread/thr_clean.c
==============================================================================
--- head/lib/libthr/thread/thr_clean.c  Sat Sep 25 09:16:46 2010        
(r213162)
+++ head/lib/libthr/thread/thr_clean.c  Sat Sep 25 09:43:24 2010        
(r213163)
@@ -80,8 +80,9 @@ _pthread_cleanup_push(void (*routine) (v
 {
        struct pthread  *curthread = _get_curthread();
        struct pthread_cleanup *newbuf;
-
+#ifdef _PTHREAD_FORCED_UNWIND
        curthread->unwind_disabled = 1;
+#endif
        if ((newbuf = (struct pthread_cleanup *)
            malloc(sizeof(struct _pthread_cleanup_info))) != NULL) {
                newbuf->routine = routine;
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to