Removed the assertion in PR_JoinThread. Returning PR_FAILURE is enough.
authorwtc%netscape.com
Fri, 14 Jan 2000 00:31:07 +0000
changeset 1048 7e7ba87f7671ab619b7b68cea6cd0936f419f949
parent 1047 b81ef94030f7d28f69849f9ca3f90f7ba51fd747
child 1049 6173575c33164c3d659bdb8dae12b4f5ed512af9
push idunknown
push userunknown
push dateunknown
Removed the assertion in PR_JoinThread. Returning PR_FAILURE is enough.
pr/src/pthreads/ptthread.c
--- a/pr/src/pthreads/ptthread.c
+++ b/pr/src/pthreads/ptthread.c
@@ -509,18 +509,16 @@ PR_IMPLEMENT(PRStatus) PR_JoinThread(PRT
          * This might be a bad address, but if it isn't, the state should
          * either be an unjoinable thread or it's already had the object
          * deleted. However, the client that called join on a detached
          * thread deserves all the rath I can muster....
          */
         PR_SetError(PR_INVALID_ARGUMENT_ERROR, 0);
         PR_LogPrint(
             "PR_JoinThread: 0x%X not joinable | already smashed\n", thred);
-
-        PR_ASSERT(!"Illegal thread join attempt");
     }
     else
     {
         pthread_t id = thred->id;
         rv = pthread_join(id, &result);
         PR_ASSERT(rv == 0 && result == NULL);
         if (0 == rv)
         {