Re: [PATCH] firewall3: fix locking issue

2021-11-24 Thread Florian Eckert
Hello I found an interesting article about this topic on stackoverflow. https://stackoverflow.com/questions/17708885/flock-removing-locked-file-without-race-condition Beset regards Florian ___ openwrt-devel mailing list

[PATCH] firewall3: fix locking issue

2021-11-19 Thread Florian Eckert
By calling the command 'fw3 reload' several times at the same time, I noticed that the locking was not working properly. It happened from time to time that some firewall rules were present twice in the system! By removing the 'unlink' systemcall, this error no longer occurred on my systems.