add cond_wait for socket message

This commit is contained in:
云风
2013-08-23 19:41:11 +08:00
parent 1fc601612c
commit 1b5652e374
7 changed files with 106 additions and 56 deletions

View File

@@ -529,7 +529,7 @@ skynet_command(struct skynet_context * context, const char * cmd , const char *
}
if (strcmp(cmd,"MONITOR") == 0) {
uint32_t handle;
uint32_t handle=0;
if (param == NULL || param[0] == '\0') {
handle = context->handle;
} else {