File use-rlock-to-avoid-deadlocks-in-salt-ssh.patch of Package salt

From 84ff555c816f4bba7db34e137c3c620a4710004a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pablo=20Su=C3=A1rez=20Hern=C3=A1ndez?=
 <psuarezhernandez@suse.com>
Date: Wed, 4 Jan 2023 13:11:50 +0000
Subject: [PATCH] Use RLock to avoid deadlocks in salt-ssh

---
 salt/loader/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/salt/loader/__init__.py b/salt/loader/__init__.py
index 4b6fa1979d..92705f55cd 100644
--- a/salt/loader/__init__.py
+++ b/salt/loader/__init__.py
@@ -81,7 +81,7 @@ SALT_INTERNAL_LOADERS_PATHS = (
     str(SALT_BASE_PATH / "wheel"),
 )
 
-LOAD_LOCK = threading.Lock()
+LOAD_LOCK = threading.RLock()
 
 
 def LazyLoader(*args, **kwargs):
-- 
2.47.0

openSUSE Build Service is sponsored by