apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: apr/threadproc/unix thread.c
Date Wed, 01 Aug 2001 16:45:48 GMT
trawick     01/08/01 09:45:48

  Modified:    threadproc/unix thread.c
  Log:
  fix apr_thread_join() on Unix to pick up the correct thread
  exit status code
  
  Revision  Changes    Path
  1.42      +3 -1      apr/threadproc/unix/thread.c
  
  Index: thread.c
  ===================================================================
  RCS file: /home/cvs/apr/threadproc/unix/thread.c,v
  retrieving revision 1.41
  retrieving revision 1.42
  diff -u -r1.41 -r1.42
  --- thread.c	2001/07/24 13:47:46	1.41
  +++ thread.c	2001/08/01 16:45:48	1.42
  @@ -186,8 +186,10 @@
   apr_status_t apr_thread_join(apr_status_t *retval, apr_thread_t *thd)
   {
       apr_status_t stat;
  +    apr_status_t *thread_stat;
   
  -    if ((stat = pthread_join(*thd->td,(void *)&retval)) == 0) {
  +    if ((stat = pthread_join(*thd->td,(void *)&thread_stat)) == 0) {
  +        *retval = *thread_stat;
           return APR_SUCCESS;
       }
       else {
  
  
  

Mime
View raw message