summaryrefslogtreecommitdiff
path: root/shmem
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2000-10-06 18:15:14 +0000
committerWilliam A. Rowe Jr <wrowe@apache.org>2000-10-06 18:15:14 +0000
commit29c9a344f46750fd3b97cc5dc6ff85aeb000cde5 (patch)
treeefec59334b6dad4ac6e83e84d76a5da7d68b7838 /shmem
parent5012e23963abeca35f34297a5a71238576612509 (diff)
downloadapr-29c9a344f46750fd3b97cc5dc6ff85aeb000cde5.tar.gz
back this out, should have never been touched.
Submitted by: rbb git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60555 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'shmem')
-rw-r--r--shmem/unix/mm/mm_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shmem/unix/mm/mm_core.c b/shmem/unix/mm/mm_core.c
index a0535bf06..4b9a62bd9 100644
--- a/shmem/unix/mm/mm_core.c
+++ b/shmem/unix/mm/mm_core.c
@@ -315,14 +315,14 @@ void *mm_core_create(size_t usersize, const char *file)
#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");