libringbuffer shm: second unlink should be allowed to fail
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 26 Aug 2011 12:55:34 +0000 (08:55 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 26 Aug 2011 12:55:34 +0000 (08:55 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
libringbuffer/shm.c

index 36f7e36b6a573dc2738b4444d92da563ed5830c9..1656adbdbd37aa1499179971ac63c20345532f56 100644 (file)
@@ -82,11 +82,7 @@ struct shm_object *shm_object_table_append(struct shm_object_table *table,
                PERROR("shm_open");
                goto error_shm_open;
        }
-       ret = shm_unlink("ust-shm-tmp");
-       if (ret) {
-               PERROR("shm_unlink");
-               goto error_unlink;
-       }
+       (void) shm_unlink("ust-shm-tmp");
        ret = ftruncate(shmfd, memory_map_size);
        if (ret) {
                PERROR("ftruncate");
This page took 0.025357 seconds and 4 git commands to generate.