Cygwin: Unlink shm and wait pipe file
authorChristian Babeux <christian.babeux@efficios.com>
Thu, 6 Dec 2012 20:42:48 +0000 (15:42 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 6 Dec 2012 20:42:48 +0000 (15:42 -0500)
Signed-off-by: Christian Babeux <christian.babeux@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
libringbuffer/shm.c

index 06724e58999aad7169a232bdff91866e66413e97..4d7433990f9c2d6bb0424954704df9863c7a5f0a 100644 (file)
@@ -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);
        }
 }
This page took 0.025164 seconds and 4 git commands to generate.