* UST lock needs to be nested within dynamic loader
* lock.
*/
- ust_lock();
+ if (ust_lock()) {
+ /*
+ * Stop iteration on headers if need to exit.
+ */
+ ust_unlock();
+ return 1;
+ }
+
sessionsp = _lttng_get_sessions();
cds_list_for_each_entry(session, sessionsp, node) {
if (session->owner != owner)
sostat.st_mtime);
}
ust_unlock();
-
/*
* We are only interested in the base address (lowest virtual
* address associated with the memory image), skip the rest