From 65ad8250153c735c8e209ddafa4590257cccac89 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Fri, 15 Sep 2023 15:33:13 +0200 Subject: shared_memory: win32 fix --- source/tests/test_interprocess.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'source/tests/test_interprocess.c') diff --git a/source/tests/test_interprocess.c b/source/tests/test_interprocess.c index 5afc0c8..a69dd02 100644 --- a/source/tests/test_interprocess.c +++ b/source/tests/test_interprocess.c @@ -25,8 +25,11 @@ int run_writer() { while (mem.bytes[0] != STATE_DONE) thrd_yield(); - if (kit_shared_memory_close(&mem) != KIT_OK) + if (kit_shared_memory_close(&mem) != KIT_OK) { + printf("%s: kit_shared_memory_close failed.\n", __FUNCTION__); + fflush(stdout); return 1; + } return 0; } @@ -60,8 +63,11 @@ int run_reader() { mem.bytes[0] = STATE_DONE; - if (kit_shared_memory_close(&mem) != KIT_OK) + if (kit_shared_memory_close(&mem) != KIT_OK) { + printf("%s: kit_shared_memory_close failed.\n", __FUNCTION__); + fflush(stdout); status = 1; + } return status; } -- cgit v1.2.3