From 63433bd69ed2a529b8dcf95f8f769059959b532f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=91=E9=A3=8E?= Date: Tue, 29 Oct 2013 14:34:33 +0800 Subject: [PATCH] fix issue #52 --- skynet-src/skynet_start.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skynet-src/skynet_start.c b/skynet-src/skynet_start.c index f590fd3b..20dd265f 100644 --- a/skynet-src/skynet_start.c +++ b/skynet-src/skynet_start.c @@ -149,7 +149,7 @@ _start(int thread) { m->m = malloc(thread * sizeof(struct skynet_monitor *)); int i; for (i=0;im[i] = skynet_monitor_new(i); + m->m[i] = skynet_monitor_new(); } if (pthread_mutex_init(&m->mutex, NULL)) { fprintf(stderr, "Init mutex error");