From: Christian Babeux Date: Thu, 6 Dec 2012 20:42:48 +0000 (-0500) Subject: Cygwin: Unlink shm and wait pipe file X-Git-Url: http://git.lttng.org/?p=lttng-ust.git;a=commitdiff_plain;h=fcd27aa57ff71448b82677a408bcd07e05bfac3d Cygwin: Unlink shm and wait pipe file Signed-off-by: Christian Babeux Signed-off-by: Mathieu Desnoyers --- diff --git a/libringbuffer/shm.c b/libringbuffer/shm.c index 06724e58..4d743399 100644 --- a/libringbuffer/shm.c +++ b/libringbuffer/shm.c @@ -369,6 +369,7 @@ void shmp_object_destroy(struct shm_object *obj) } if (obj->shm_path) { + unlink(obj->shm_path); free(obj->shm_path); } @@ -383,6 +384,7 @@ void shmp_object_destroy(struct shm_object *obj) } if (obj->wait_pipe_path) { + unlink(obj->wait_pipe_path); free(obj->wait_pipe_path); } }