apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aa...@apache.org
Subject cvs commit: apr/shmem/unix shm.c
Date Thu, 17 Jan 2002 00:32:22 GMT
aaron       02/01/16 16:32:22

  Modified:    shmem/unix shm.c
  Log:
  Implement apr_shm_detach for name-based shmget().
  
  Revision  Changes    Path
  1.7       +4 -2      apr/shmem/unix/shm.c
  
  Index: shm.c
  ===================================================================
  RCS file: /home/cvs/apr/shmem/unix/shm.c,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- shm.c	16 Jan 2002 22:16:30 -0000	1.6
  +++ shm.c	17 Jan 2002 00:32:22 -0000	1.7
  @@ -420,8 +420,10 @@
       /* FIXME: munmap the segment. */
       return APR_ENOTIMPL;
   #elif APR_USE_SHMEM_SHMGET
  -    /* FIXME: shmdt. */
  -    return APR_ENOTIMPL;
  +    if (shmdt(m->base) < 0) {
  +        return errno;
  +    }
  +    return APR_SUCCESS;
   #else
       return APR_ENOTIMPL;
   #endif
  
  
  

Mime
View raw message