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/08/19 08:43:01 UTC

svn commit: r805677 - in /commons/sandbox/runtime/trunk/src/main/native/os/win32: pmutex.c psema.c

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;
         }