Re: [PATCH] Kannel bearerbox graceful restart support (via SIGHUP or HTTP admin command)

Stipe Tolj <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Organization Kannel Software Foundation (KSF)
Message-ID <[email protected]>
Hi list,

while doing some stress load testing for the graceful restart via 
SIGHUP, there was a segfault detected. We destroy the cfg_reloaded 
structure on each signal processing iteration. Therefore we CAN NOT have 
the grp pointer hosted in the SMSCConn struct. Otherwise we run into a 
unreferenced pointer later when comparing the checksums.

The checksums of the config groups have been moved now from the CfgGroup 
struct to the SMSCConn struct itself. A function 
cfg_get_group_checksum(CfgGroup *) can calculate it.

Please find the new patch at URL:

http://www.kannel.org/~tolj/patchsets/graceful/gateway-graceful-restart.v2.diff

Stipe

-- 
-------------------------------------------------------------------
Kölner Landstrasse 419
40589 DÃŒsseldorf, NRW, Germany

tolj.org system architecture      Kannel Software Foundation (KSF)
http://www.tolj.org/              http://www.kannel.org/

mailto:st_{at}_tolj.org           mailto:stolj_{at}_kannel.org
-------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.