mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
use rlock so blocking can be passed in py2
This commit is contained in:
parent
d346b42332
commit
de98be6093
1 changed files with 2 additions and 2 deletions
|
@ -112,7 +112,7 @@ def minion_process():
|
|||
def handle_hup(manager, sig, frame):
|
||||
manager.minion.reload()
|
||||
|
||||
lock = threading.Lock()
|
||||
lock = threading.RLock()
|
||||
|
||||
def suicide_when_without_parent(parent_pid):
|
||||
'''
|
||||
|
@ -156,7 +156,7 @@ def minion_process():
|
|||
log.info('waiting random_reauth_delay %ss', delay)
|
||||
time.sleep(delay)
|
||||
sys.exit(salt.defaults.exitcodes.SALT_KEEPALIVE)
|
||||
except SystemExit:
|
||||
except BaseException:
|
||||
lock.acquire(blocking=True)
|
||||
raise
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue