]> git.openfabrics.org - ~shefty/librdmacm.git/commitdiff
Refresh of fork
authorSean Hefty <sean.hefty@intel.com>
Wed, 18 Jul 2012 18:37:30 +0000 (11:37 -0700)
committerSean Hefty <sean.hefty@intel.com>
Wed, 18 Jul 2012 18:37:30 +0000 (11:37 -0700)
src/preload.c

index 731643ddfbbfb4c928f35c9cb7ac8ae71d240ae5..a1073d5d996a442aefe1284d184e0566bbd350dd 100644 (file)
@@ -846,7 +846,7 @@ pid_t fork(void)
        sin6.sin6_flowinfo = sin6.sin6_scope_id = 0;
        memset(&sin6.sin6_addr, 0, sizeof sin6.sin6_addr);
 
-       sem = sem_open("/rsocket_fork", O_CREAT, 0644, 1);
+       sem = sem_open("/rsocket_fork", O_CREAT | O_RDWR, S_IRWXU, 1);
        if (sem == SEM_FAILED)
                goto out;