From afe99b7b1574a3ef28e1399ddb8d7219db70518a Mon Sep 17 00:00:00 2001 From: Vlad Paiu Date: Tue, 30 Aug 2022 19:16:20 +0300 Subject: [PATCH] Temporary fix for generating clean shutdowns even for mem corruption crashes FULL fix would be to not worry about mem locks in the shutdown procedure ( ie. what cleanup() is doing ) (cherry picked from commit e7b8084b9823ae6004f5abca62cf752ab317d507) --- shutdown.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/shutdown.c b/shutdown.c index 8e3954fcb67..b6375e78837 100644 --- a/shutdown.c +++ b/shutdown.c @@ -190,7 +190,11 @@ void shutdown_opensips( int status ) int i, n, p; int chld_status; - sr_set_core_status( STATE_TERMINATING, MI_SSTR("shutting down")); + /* TODO - temporarily removing this + * in case a mem corruption crash happens, OpenSIPS will get stuck + * in getting the SHM locks in the below function + * sr_set_core_status( STATE_TERMINATING, MI_SSTR("shutting down")); + */ /* terminate all processes */