lock.c: Add AMI event for deadlocks.

Adds an AMI event to indicate that a deadlock
has likely started, when Asterisk is compiled
with DETECT_DEADLOCKS enabled. This can make
it easier to perform automated deadlock detection
and take appropriate action (such as doing a core
dump). Unlike the deadlock warnings, the AMI event
is emitted only once per deadlock.

ASTERISK-30161 #close

Change-Id: Ifc6ed3e390f8b4cff7f8077a50e4d7a5b54e42fb
This commit is contained in:
Naveen Albert
2022-07-27 19:54:43 +00:00
committed by Friendly Automation
parent f4ea243e49
commit 1456dc757b
2 changed files with 26 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
Subject: locks
A new AMI event, DeadlockStart, is now available
when Asterisk is compiled with DETECT_DEADLOCKS,
and can indicate that a deadlock has occured.