[LEDE-DEV] [PATCH] dnsmasq: write atomic config file

Felix Fietkau nbd at nbd.name
Mon Jun 13 06:50:13 PDT 2016


On 2016-06-13 15:40, Jo-Philipp Wich wrote:
> Hi Ulrich,
> 
> wouldn't some protection with "flock" or similar be better in this case
> in order to serialize config generation and restart tasks?
I don't think we should be using flock. We should find a way to have
procd serialize init script calls properly.

As far as I know, dnsmasq can also re-read its configuration file, so
regardless of the issue of locking init scripts against concurrent
calls, this change is useful.

- Felix



More information about the Lede-dev mailing list