mutex or semaphore
Hello,
I hope I've choosed the right mailing list.
Does iptables use a mechanism like mutex or semaphore?
Or should I use some lock-files in my scripts to avoid simultaneous access to the rules?
Thank you
Chris
Signature · 3 lines
random smiley: :/7) Cyrano de Bergerac --- www.christianziegler.com ---
Quoted 5 lines · Christian Ziegler
Hello,
I hope I've choosed the right mailing list.
Does iptables use a mechanism like mutex or semaphore?
it uses a mutex.
Quoted 2 lines
Or should I use some lock-files in my scripts to avoid simultaneous access to the rules?
no, this is not necessarry. any iptables command will execute atomically.
Quoted 2 lines
Thank you
Chris
Signature · 5 lines
- Harald Welte <[email protected]> http://www.netfilter.org/ ============================================================================ "Fragmentation is like classful addressing -- an interesting early architectural error that shows how much experimentation was going on while IP was being designed." -- Paul Vixie