Commit 5d6b3046 authored by Hardy Simpson's avatar Hardy Simpson

bugfix: call zlog_clean_rest_thread in exit() mutilple times

parent 874bc2fb
#define ZLOG_VERSION "1.2.10"
#define ZLOG_VERSION "1.2.11"
......@@ -85,6 +85,7 @@ static int zlog_init_inner(const char *confpath)
zc_error("atexit fail, rc[%d]", rc);
goto err;
}
zlog_env_init_version++;
} /* else maybe after zlog_fini() and need not create pthread_key */
zlog_env_conf = zlog_conf_new(confpath);
......@@ -129,6 +130,7 @@ int zlog_init(const char *confpath)
goto err;
}
if (zlog_init_inner(confpath)) {
zc_error("zlog_init_inner[%s] fail", confpath);
goto err;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment