[Home]

Summary:DAHTOOL-00078: race: both init script and hotplug may configure astribanks at boot time
Reporter:Tzafrir Cohen (tzafrir)Labels:
Date Opened:2017-08-31 11:16:10Date Closed:2019-06-06 09:58:49
Priority:MinorRegression?Yes
Status:Closed/CompleteComponents:
Versions:2.9.1 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:On systems where auto_assign_spans=0 but the dahdi init script is used, there may be a race between the dahdi init script and scrips run from used from initializing the devices.

An example of such a race may be a T1 Astribank. At the wrong timing of the boot process, the init script may run /usr/share/dahdi/dahdi_auto_assign_compat and it will run 'dahdi_registration -Rv on' before the span types were set on the devices to T1. Thus they will be registered as E1, and the configuration will be all wrong.

One fix is to remove the init script altogether. It has hardly any use. However a patch to dahdi_auto_assign_compat will be posted shortly.
Comments: