[Asterisk-code-review] res musiconhold: Prevent multiple simultaneous reloads. (asterisk[master])

Sean Bright asteriskteam at digium.com
Wed Jan 13 07:50:29 CST 2016


Sean Bright has uploaded a new patch set (#2).

Change subject: res_musiconhold: Prevent multiple simultaneous reloads.
......................................................................

res_musiconhold: Prevent multiple simultaneous reloads.

There are two ways in which the reload() function in res_musiconhold can be
called from the CLI:

  * module reload res_musiconhold.so
  * moh reload

In the former case, the module loader holds a lock that prevents multiple
concurrent calls, but in the latter there is no such protection.

This patch changes the 'moh reload' CLI command to invoke the module loader
directly, rather than call reload() explicitly.

ASTERISK-25687 #close

Change-Id: I408968b4c8932864411b7f9ad88cfdc7b9ba711c
---
M res/res_musiconhold.c
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/02/2002/2
-- 
To view, visit https://gerrit.asterisk.org/2002
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I408968b4c8932864411b7f9ad88cfdc7b9ba711c
Gerrit-PatchSet: 2
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: Sean Bright <sean.bright at gmail.com>



More information about the asterisk-code-review mailing list