Skip to content

Commit

Permalink
Temporary fix for generating clean shutdowns even for mem corruption …
Browse files Browse the repository at this point in the history
…crashes

FULL fix would be to not worry about mem locks in the shutdown procedure ( ie. what cleanup() is doing )
  • Loading branch information
vladpaiu committed Aug 30, 2022
1 parent dae9817 commit e7b8084
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion shutdown.c
Expand Up @@ -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 */

Expand Down

0 comments on commit e7b8084

Please sign in to comment.