apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject cvs commit: apr/locks/unix proc_mutex.c
Date Mon, 14 Jun 2004 09:13:36 GMT
jorton      2004/06/14 02:13:36

  Modified:    locks/unix proc_mutex.c
  Log:
  * locks/unix/proc_mutex.c (proc_mutex_pthread_create): Don't leak an
  fd on mmap failure.
  
  Revision  Changes    Path
  1.42      +1 -0      apr/locks/unix/proc_mutex.c
  
  Index: proc_mutex.c
  ===================================================================
  RCS file: /home/cvs/apr/locks/unix/proc_mutex.c,v
  retrieving revision 1.41
  retrieving revision 1.42
  diff -d -w -u -r1.41 -r1.42
  --- proc_mutex.c	14 Jun 2004 09:09:55 -0000	1.41
  +++ proc_mutex.c	14 Jun 2004 09:13:36 -0000	1.42
  @@ -290,6 +290,7 @@
                                          PROT_READ | PROT_WRITE, MAP_SHARED,
                                          fd, 0); 
       if (new_mutex->pthread_interproc == (pthread_mutex_t *) (caddr_t) -1) {
  +        close(fd);
           return errno;
       }
       close(fd);
  
  
  

Mime
View raw message