endless monitior

This commit is contained in:
云风
2012-09-28 21:10:39 +08:00
parent c50e465879
commit 689108df60
4 changed files with 40 additions and 10 deletions

View File

@@ -1,4 +1,5 @@
#include "skynet_monitor.h"
#include "skynet_server.h"
#include "skynet.h"
#include <stdlib.h>
@@ -34,6 +35,7 @@ void
skynet_monitor_check(struct skynet_monitor *sm) {
if (sm->version == sm->check_version) {
if (sm->destination) {
skynet_context_endless(sm->destination);
skynet_error(NULL, "A message from [ :%08x ] to [ :%08x ] maybe in an endless loop", sm->source , sm->destination);
}
} else {