Module: kamailio Branch: master Commit: 73ba0266cf76083b51e85d877f04f4a3da67d207 URL: https://github.com/kamailio/kamailio/commit/73ba0266cf76083b51e85d877f04f4a3...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2024-11-21T20:37:31+01:00
pike: disable destroy of internal tree on mod-destroy callback
- it is safer and faster to be removed at once by core or OS when application context is destroyed
---
Modified: src/modules/pike/pike.c
---
Diff: https://github.com/kamailio/kamailio/commit/73ba0266cf76083b51e85d877f04f4a3... Patch: https://github.com/kamailio/kamailio/commit/73ba0266cf76083b51e85d877f04f4a3...
---
diff --git a/src/modules/pike/pike.c b/src/modules/pike/pike.c index c256049e7d5..e4791dd2046 100644 --- a/src/modules/pike/pike.c +++ b/src/modules/pike/pike.c @@ -145,10 +145,12 @@ static int pike_init(void)
void pike_exit(void) { +#if 0 /* destroy semaphore */ if(pike_timer_lock) { lock_destroy(pike_timer_lock); lock_dealloc(pike_timer_lock); + pike_timer_lock = 0; }
/* empty the timer list head */ @@ -159,6 +161,9 @@ void pike_exit(void)
/* destroy the IP tree */ destroy_ip_tree(); +#endif + + LM_DBG("done\n");
return; }