#! /bin/sh /usr/share/dpatch/dpatch-run ## 21_pt_book-user_dec.dpatch by Ludovico Cavedon ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: decrement pt_book.user in cleanup @DPATCH@ diff -urNad nspr-4.7.1~/mozilla/nsprpub/pr/src/pthreads/ptthread.c nspr-4.7.1/mozilla/nsprpub/pr/src/pthreads/ptthread.c --- nspr-4.7.1~/mozilla/nsprpub/pr/src/pthreads/ptthread.c 2008-01-31 12:00:58.000000000 -0800 +++ nspr-4.7.1/mozilla/nsprpub/pr/src/pthreads/ptthread.c 2009-03-21 18:52:41.000000000 -0700 @@ -1033,6 +1033,7 @@ PR_Lock(pt_book.ml); while (pt_book.user > pt_book.this_many) PR_WaitCondVar(pt_book.cv, PR_INTERVAL_NO_TIMEOUT); + --pt_book.user; PR_Unlock(pt_book.ml); _PR_CleanupMW();