citrun

watch C/C++ source code execute
Log | Files | Refs | LICENSE

commit 8d4eeac040f8548f4da26feb8eb6885af827b711
parent 5c665625807bff5d7d33a31e30b800bd877bed17
Author: Kyle Milz <kyle@0x30.net>
Date:   Fri, 19 Aug 2016 15:05:02 -0600

src: always unlink shared memory

Diffstat:
Msrc/runtime.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/runtime.c b/src/runtime.c @@ -36,8 +36,7 @@ static size_t shm_len = 0; __attribute__((destructor)) static void clean_up() { - if (shm_fd > 0) - (void) shm_unlink(SHM_PATH); + (void) shm_unlink(SHM_PATH); } size_t