commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r805677 - in /commons/sandbox/runtime/trunk/src/main/native/os/win32: pmutex.c psema.c
Date Wed, 19 Aug 2009 06:43:01 GMT
Author: mturk
Date: Wed Aug 19 06:43:00 2009
New Revision: 805677

URL: http://svn.apache.org/viewvc?rev=805677&view=rev
Log:
Add R/W access as well to AU group

Modified:
    commons/sandbox/runtime/trunk/src/main/native/os/win32/pmutex.c
    commons/sandbox/runtime/trunk/src/main/native/os/win32/psema.c

Modified: commons/sandbox/runtime/trunk/src/main/native/os/win32/pmutex.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/win32/pmutex.c?rev=805677&r1=805676&r2=805677&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/win32/pmutex.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/win32/pmutex.c Wed Aug 19 06:43:00 2009
@@ -58,7 +58,7 @@
     sa.nLength = sizeof(SECURITY_ATTRIBUTES);
     sa.lpSecurityDescriptor = ACR_GetSecurityDescriptor(_E,
                                                 GENERIC_ALL | MUTEX_ALL_ACCESS,
-                                                MUTEX_MODIFY_STATE);
+                                                GENERIC_READ | GENERIC_WRITE | MUTEX_MODIFY_STATE);
     sa.bInheritHandle = FALSE;
     m = CreateMutexW(&sa, FALSE, reskey);
     if (!m)
@@ -114,13 +114,13 @@
         }
         else if (ws == WAIT_OBJECT_0 + 1) {
             /* Signal event is set
-             * TODO: Deliver a signal 
+             * TODO: Deliver a signal
              */
             rc = ACR_EINTR;
         }
         else if (ws == WAIT_IO_COMPLETION) {
             /* APC queued to this thread
-             * TODO: Deliver a signal 
+             * TODO: Deliver a signal
              */
             rc = ACR_TIMEUP;
         }

Modified: commons/sandbox/runtime/trunk/src/main/native/os/win32/psema.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/win32/psema.c?rev=805677&r1=805676&r2=805677&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/win32/psema.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/win32/psema.c Wed Aug 19 06:43:00 2009
@@ -66,7 +66,7 @@
     sa.nLength = sizeof(SECURITY_ATTRIBUTES);
     sa.lpSecurityDescriptor = ACR_GetSecurityDescriptor(_E,
                                             GENERIC_ALL | SEMAPHORE_ALL_ACCESS,
-                                            SEMAPHORE_MODIFY_STATE);
+                                            GENERIC_READ | GENERIC_WRITE | SEMAPHORE_MODIFY_STATE);
     sa.bInheritHandle = FALSE;
     s = CreateSemaphoreW(&sa, (LONG)value, (LONG)maxval, reskey);
     if (!s)
@@ -147,13 +147,13 @@
         }
         else if (ws == WAIT_OBJECT_0 + 1) {
             /* Signal event is set
-             * TODO: Deliver a signal 
+             * TODO: Deliver a signal
              */
             rc = ACR_EINTR;
         }
         else if (ws == WAIT_IO_COMPLETION) {
             /* APC queued to this thread
-             * TODO: Deliver a signal 
+             * TODO: Deliver a signal
              */
             rc = ACR_TIMEUP;
         }



Mime
View raw message