mike-jumper commented on a change in pull request #273:
URL: https://github.com/apache/guacamole-server/pull/273#discussion_r442018902



##########
File path: src/protocols/rdp/client.c
##########
@@ -155,6 +157,12 @@ int guac_client_init(guac_client* client, int argc, char** 
argv) {
     pthread_mutexattr_settype(&(rdp_client->attributes),
             PTHREAD_MUTEX_RECURSIVE);
 
+    /* Initalize the lock */
+    pthread_rwlockattr_init(&lock_attributes);
+    pthread_rwlockattr_setpshared(&lock_attributes, PTHREAD_PROCESS_SHARED);

Review comment:
       Does this lock need `PTHREAD_PROCESS_SHARED`? I don't believe instances 
of this lock will be shared across different processes, just among threads of 
the same process.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to