Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

bugfix: call zlog_clean_rest_thread in exit() mutilple times

  • Loading branch information...
commit 5d6b304636f8a099fa05c970fb317b292f36d67d 1 parent 874bc2f
@HardySimpson authored
Showing with 3 additions and 1 deletion.
  1. +1 −1  src/version.h
  2. +2 −0  src/zlog.c
View
2  src/version.h
@@ -1 +1 @@
-#define ZLOG_VERSION "1.2.10"
+#define ZLOG_VERSION "1.2.11"
View
2  src/zlog.c
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.