Handle zygote restarts

This commit is contained in:
topjohnwu
2022-05-28 22:39:44 -07:00
parent 9c774f96db
commit 490a784993
8 changed files with 33 additions and 6 deletions

View File

@@ -14,7 +14,7 @@ using namespace std;
// so performance is absolutely critical. Most operations should either have its result cached
// or simply skipped unless necessary.
static atomic<ino_t> pkg_xml_ino = 0;
atomic<ino_t> pkg_xml_ino = 0;
static atomic_flag skip_check;
static pthread_mutex_t pkg_lock = PTHREAD_MUTEX_INITIALIZER;