httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@locus.apache.org
Subject cvs commit: apache-2.0/src/lib/apr/locks/unix crossproc.c
Date Wed, 05 Apr 2000 21:44:44 GMT
rbb         00/04/05 14:44:44

  Modified:    src/lib/apr/locks/unix crossproc.c
  Log:
  Fix a bug pthreads cross process locks.  This was missed in the big patch
  to do this last week sometime.
  PR:	26
  Submitted by:	Mike Abbott <mja@sgi.com>
  Reviewed by:	Ryan Bloom
  
  Revision  Changes    Path
  1.24      +1 -1      apache-2.0/src/lib/apr/locks/unix/crossproc.c
  
  Index: crossproc.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/locks/unix/crossproc.c,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- crossproc.c	2000/04/04 11:40:18	1.23
  +++ crossproc.c	2000/04/05 21:44:43	1.24
  @@ -168,7 +168,7 @@
       new->interproc = (pthread_mutex_t *)mmap((caddr_t) 0, 
                                 sizeof(pthread_mutex_t), 
                                 PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); 
  -    if (new->interproc = (pthread_mutex_t *) (caddr_t) -1) {
  +    if (new->interproc == (pthread_mutex_t *) (caddr_t) -1) {
           return errno;
       }
       close(fd);
  
  
  

Mime
View raw message