httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@locus.apache.org
Subject cvs commit: apache-2.0/src/lib/apr/shmem/unix/mm mm_core.c
Date Fri, 06 Oct 2000 18:15:14 GMT
wrowe       00/10/06 11:15:14

  Modified:    src/lib/apr/shmem/unix/mm mm_core.c
  Log:
    back this out, should have never been touched.
  
  Submitted by:	rbb
  
  Revision  Changes    Path
  1.8       +2 -2      apache-2.0/src/lib/apr/shmem/unix/mm/mm_core.c
  
  Index: mm_core.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/shmem/unix/mm/mm_core.c,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- mm_core.c	2000/10/06 17:52:44	1.7
  +++ mm_core.c	2000/10/06 18:15:14	1.8
  @@ -315,14 +315,14 @@
   
   #if defined(MM_SEMT_IPCSEM)
       fdsem = semget(IPC_PRIVATE, 1, IPC_CREAT|IPC_EXCL|S_IRUSR|S_IWUSR);
  -    if (fdsem == -1 && APR_STATUS_IS_EEXIST(errno))
  +    if (fdsem == -1 && errno == EEXIST)
           fdsem = semget(IPC_PRIVATE, 1, IPC_EXCL|S_IRUSR|S_IWUSR);
           if (fdsem == -1)
               FAIL(MM_ERR_CORE|MM_ERR_SYSTEM, "failed to acquire semaphore");
       mm_core_semctlarg.val = 0;
       semctl(fdsem, 0, SETVAL, mm_core_semctlarg);
       fdsem_rd = semget(IPC_PRIVATE, 1, IPC_CREAT|IPC_EXCL|S_IRUSR|S_IWUSR);
  -    if (fdsem_rd == -1 && APR_STATUS_IS_EEXIST(errno))
  +    if (fdsem_rd == -1 && errno == EEXIST)
           fdsem_rd = semget(IPC_PRIVATE, 1, IPC_EXCL|S_IRUSR|S_IWUSR);
           if (fdsem_rd == -1)
               FAIL(MM_ERR_CORE|MM_ERR_SYSTEM, "failed to acquire semaphore");
  
  
  

Mime
View raw message