summaryrefslogtreecommitdiff
path: root/src/libnm-log-core/nm-logging.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libnm-log-core/nm-logging.c')
-rw-r--r--src/libnm-log-core/nm-logging.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libnm-log-core/nm-logging.c b/src/libnm-log-core/nm-logging.c
index b3a4b267b9..2ab0d92e07 100644
--- a/src/libnm-log-core/nm-logging.c
+++ b/src/libnm-log-core/nm-logging.c
@@ -402,7 +402,10 @@ nm_logging_setup(const char *level, const char *domains, char **bad_domains, GEr
if (had_platform_debug && !_nm_logging_enabled_lockfree(LOGL_DEBUG, LOGD_PLATFORM)) {
/* when debug logging is enabled, platform will cache all access to
* sysctl. When the user disables debug-logging, we want to clear that
- * cache right away. */
+ * cache right away.
+ *
+ * It's important that we call this without having a lock on "log", because
+ * otherwise we might deadlock. */
_nm_logging_clear_platform_logging_cache();
}