commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r818763 - /commons/sandbox/runtime/trunk/src/main/native/os/unix/sema.c
Date Fri, 25 Sep 2009 08:13:44 GMT
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;



Mime
View raw message