From 37a7bd95042c19d7334b099d50ac6dc8e07e4b4e Mon Sep 17 00:00:00 2001 From: wangzhengquan <wangzhengquan85@126.com> Date: 星期二, 07 七月 2020 16:40:51 +0800 Subject: [PATCH] update --- squeue/mm.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/squeue/mm.c b/squeue/mm.c index 9cf01f0..c48347a 100644 --- a/squeue/mm.c +++ b/squeue/mm.c @@ -77,8 +77,8 @@ static int shmid = -1; static void *shmp; -//static int mutex = SemUtil::get(8899, 1); -static int mutex = SemUtil::get(IPC_PRIVATE, 1); +static int mutex = SemUtil::get(SHM_MUTEX_KEY, 1); +//static int mutex = SemUtil::get(IPC_PRIVATE, 1); static void *mem_start_brk; /* points to first byte of heap */ static void *mem_brk; /* points to last byte of heap */ @@ -107,7 +107,7 @@ SemUtil::inc(mutex); return aptr; } else { - fprintf(stderr, "mm_malloc : out of memery\n"); + err_exit(0, "mm_malloc : out of memery\n"); return NULL; } -- Gitblit v1.8.0