apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i...@apache.org
Subject cvs commit: apr/shmem/unix shm.c
Date Tue, 05 Feb 2002 04:32:52 GMT
ianh        02/02/04 20:32:52

  Modified:    shmem/unix shm.c
  Log:
  not allocating memory for the metadata..
  Thanks Jin.
  
  Submitted by:	Jin Hong <jinh@cnet.com>
  
  Revision  Changes    Path
  1.14      +1 -1      apr/shmem/unix/shm.c
  
  Index: shm.c
  ===================================================================
  RCS file: /home/cvs/apr/shmem/unix/shm.c,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- shm.c	4 Feb 2002 19:33:38 -0000	1.13
  +++ shm.c	5 Feb 2002 04:32:52 -0000	1.14
  @@ -197,7 +197,7 @@
           return APR_SUCCESS;
   
   #elif APR_USE_SHMEM_MMAP_ANON
  -        new_m->base = mmap(NULL, reqsize, PROT_READ|PROT_WRITE,
  +        new_m->base = mmap(NULL, new_m->realsize, PROT_READ|PROT_WRITE,
                              MAP_ANON|MAP_SHARED, -1, 0);
           if (new_m->base == MAP_FAILED) {
               return errno;
  
  
  

Mime
View raw message