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

index c38935a29dc87b8efca7152825916437ad264e0a..976e2e069fda1695c68b474637d74465a58165ff 100644 (file)
@@ -856,7 +856,6 @@ pid_t fork(void)
        memset(&sin6.sin6_addr, 0, sizeof sin6.sin6_addr);
 
        sem = sem_open("/rsocket_fork", O_CREAT | O_RDWR, S_IRWXU, 1);
-       sem = sem_open("/rsocket_fork", O_CREAT, 0644, 1);
        printf("fork - sem_open\n");
        if (sem == SEM_FAILED)
                goto out;
@@ -869,6 +868,7 @@ pid_t fork(void)
        param = 1;
        rsetsockopt(lfd, SOL_SOCKET, SO_REUSEADDR, &param, sizeof param);
 
+       printf("fork - waiting for semaphore\n");
        sem_wait(sem);
        ret = rbind(lfd, (struct sockaddr *) &sin6, sizeof sin6);
        printf("fork - rbind %d\n", ret);