修改网络监听退出流程
This commit is contained in:
@ -98,9 +98,9 @@ void log_manager_stop(log_manager *self)
|
||||
pthread_mutex_lock(&self->mtx);
|
||||
self->stop = 1; /* 置退出标志 */
|
||||
pthread_cond_broadcast(&self->cond); /* 唤醒所有等待线程 */
|
||||
printf("stopping loger\n");
|
||||
printf("SYS:stopping loger\n");
|
||||
pthread_mutex_unlock(&self->mtx);
|
||||
printf("done\n");
|
||||
printf("SYS:done\n");
|
||||
}
|
||||
|
||||
//定期清理函数
|
||||
|
Reference in New Issue
Block a user