Skip to contentSkip to conversation

mutex or semaphore

DISCUSSION Christian Ziegler 2 participants 2 messages Mar 28, 2003 – Mar 30, 2003 netfilter

lore
Share & tools
lore
#0 lore raw

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 ---
#1 lore raw
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