Commit 9989b877 authored by Committed by Russ Meyerriecks
dahdi_cfg: Add semaphore to prevent parallel execution.
When dahdi is configured for fully dynamic configuration on a device and span basis via sysfs and udev it is possible for multiple instances of dahdi_cfg to be run in parallel on different spans. If this happens it is possible to see errors on the console that tone zones are already registered since the check for the existence of a tone zone and the re-registering needs to be atomic. dahdi_cfg will now prevent itself from running in parallel. Signed-off-by: Shaun Ruffell <firstname.lastname@example.org> Signed-off-by: Russ Meyerriecks <email@example.com>
Showing with 47 additions and 13 deletions