tirpi 2009/09/03 11:56:19 CEST
SER CVS Repository
Modified files:
cfg cfg_struct.c cfg_struct.h
doc cfg.txt
. main.c
modules/cpl-c cpl.c
modules/ctl ctl.c
modules/fifo fifo.c
modules/jabber jabber.c
modules/nathelper natping.c
modules/sms sms.c
Log:
cfg framework: fix the initialization of child processes
(backport from sip-router)
The number of child processes that keep updating their
local configuration needs to be known before any child
process is forked.
Before this the child processes increased the reference
counter of the callback function list items after forking.
If a child process was forked "too fast" then it freed the list
before the other processes had a chance to refer to the list
item. The result was that some child processes missed
the initial configuration changes. (Those changes that
had per-child process callback defined.)
Revision Changes Path
1.14 +40 -3 sip_router/cfg/cfg_struct.c
http://cvs.berlios.de/cgi-bin/viewcvs.cgi/ser/sip_router/cfg/cfg_struct.c.d…
1.8 +18 -2 sip_router/cfg/cfg_struct.h
http://cvs.berlios.de/cgi-bin/viewcvs.cgi/ser/sip_router/cfg/cfg_struct.h.d…
1.12 +16 -3 sip_router/doc/cfg.txt
http://cvs.berlios.de/cgi-bin/viewcvs.cgi/ser/sip_router/doc/cfg.txt.diff?r…
1.276 +28 -2 sip_router/main.c
http://cvs.berlios.de/cgi-bin/viewcvs.cgi/ser/sip_router/main.c.diff?r1=1.2…
1.66 +5 -1 sip_router/modules/cpl-c/cpl.c
http://cvs.berlios.de/cgi-bin/viewcvs.cgi/ser/sip_router/modules/cpl-c/cpl.…
1.6 +4 -1 sip_router/modules/ctl/ctl.c
http://cvs.berlios.de/cgi-bin/viewcvs.cgi/ser/sip_router/modules/ctl/ctl.c.…
1.7 +8 -2 sip_router/modules/fifo/fifo.c
http://cvs.berlios.de/cgi-bin/viewcvs.cgi/ser/sip_router/modules/fifo/fifo.…
1.64 +10 -3 sip_router/modules/jabber/jabber.c
http://cvs.berlios.de/cgi-bin/viewcvs.cgi/ser/sip_router/modules/jabber/jab…
1.26 +6 -3 sip_router/modules/nathelper/natping.c
http://cvs.berlios.de/cgi-bin/viewcvs.cgi/ser/sip_router/modules/nathelper/…
1.42 +5 -1 sip_router/modules/sms/sms.c
http://cvs.berlios.de/cgi-bin/viewcvs.cgi/ser/sip_router/modules/sms/sms.c.…