[Dnsmasq-discuss] dhcp-script and concurrency/parallel execution
Nicolas Cavallari
Nicolas.Cavallari at green-communications.fr
Mon Jun 8 14:35:40 BST 2015
On 08/06/2015 11:46, Bastian Bittorf wrote:
> i have seen a lot of running instances of dhcp-script
> on an embedded box (OpenWrt, 2.73rc8).
> this is a problem in 2 ways:
>
> 1)
> memory consumption
>
> 2)
> concurrency, because we read/write into files
> with the same filename
>
> at least there should be an explicit mention of that
> behaviour in the docs. also we should consider to have
> an option e.g. 'scriptwait' which wait till the script
> is terminated before the next call is started...
This is already the current behavior (helper.c:455). If you see lots
of dhcp-script running, then you have another problem, probably bugs
in your dhcp-script. Does it fork or run background commands ?
More information about the Dnsmasq-discuss
mailing list