From: Mathieu Desnoyers Date: Fri, 26 Aug 2011 12:55:34 +0000 (-0400) Subject: libringbuffer shm: second unlink should be allowed to fail X-Git-Tag: v1.9.1~237 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=74d89c32c1f8928943e1ce7eae5d659d4fd601a9;p=lttng-ust.git libringbuffer shm: second unlink should be allowed to fail Signed-off-by: Mathieu Desnoyers --- diff --git a/libringbuffer/shm.c b/libringbuffer/shm.c index 36f7e36b..1656adbd 100644 --- a/libringbuffer/shm.c +++ b/libringbuffer/shm.c @@ -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");