From e4ce347428a0d459c7561f7bb3e180f351c11a4f Mon Sep 17 00:00:00 2001 From: wangzhengquan <wangzhengquan85@126.com> Date: 星期二, 14 七月 2020 10:38:18 +0800 Subject: [PATCH] update --- queue/mm.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/queue/mm.c b/queue/mm.c index 2276a7f..592fda0 100644 --- a/queue/mm.c +++ b/queue/mm.c @@ -374,7 +374,7 @@ -void mm_destroy(void) { +bool mm_destroy(void) { struct shmid_ds shmid_ds; //detache SemUtil::dec(mutex); @@ -395,13 +395,16 @@ SemUtil::inc(mutex); SemUtil::remove(mutex); + return true; } else { SemUtil::inc(mutex); } + return false; } else { err_msg(errno, "mm_destroy shmctl IPC_STAT"); SemUtil::inc(mutex); + return false; } -- Gitblit v1.8.0