You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/09/25 10:13:44 UTC

svn commit: r818763 - /commons/sandbox/runtime/trunk/src/main/native/os/unix/sema.c

Author: mturk
Date: Fri Sep 25 08:13:44 2009
New Revision: 818763

URL: http://svn.apache.org/viewvc?rev=818763&view=rev
Log:
Some platforms require unused mode and value to be set to zero

Modified:
    commons/sandbox/runtime/trunk/src/main/native/os/unix/sema.c

Modified: commons/sandbox/runtime/trunk/src/main/native/os/unix/sema.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/unix/sema.c?rev=818763&r1=818762&r2=818763&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/unix/sema.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/unix/sema.c Fri Sep 25 08:13:44 2009
@@ -159,7 +159,7 @@
             *p = '_';
     }
 
-    s->sem = sem_open(s->name, O_RDWR);
+    s->sem = sem_open(s->name, O_RDWR, 0, 0);
     if (s->sem == (sem_t *)SEM_FAILED) {
         rc = ACR_GET_OS_ERROR();
         goto finally;