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
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.