All of lore.kernel.org
 help / color / mirror / Atom feed
* Concurrency issues with the iptables userspace program andexitcodes
@ 2006-06-01  9:15 Jesper Dangaard Brouer
  2006-06-01 16:13 ` Patrick McHardy
  0 siblings, 1 reply; 8+ messages in thread
From: Jesper Dangaard Brouer @ 2006-06-01  9:15 UTC (permalink / raw)
  To: netfilter-devel

[-- Attachment #1: Type: text/plain, Size: 983 bytes --]

Hi

I have experienced some concurrency issues with the iptables
userspace program.  Executing an iptables (write) command while
another (write command) is running causes a failure of the command.
Well, this is the expected semantics of a non-blocking call, but the
issue is how the error situation is reported back.

The iptables command detects the situation and reports:
 "iptables: Resource temporarily unavailable"

With shell exitcode "1".  What annoys me is that the shell exitcode
is "1", which is also used for "normal" errors.  This means that my
code/scripts needs to parse output from stderr to distinguish it from
normal/expected errors.

I propose that the exitcode of "Resource temporarily unavailable"
error is changed to something unique for this situation.

Comments?

-- 
Med venlig hilsen / Best regards
  Jesper Brouer
  ComX Networks A/S
  Linux Network developer
  Cand. Scient Datalog / MSc.
  Author of http://adsl-optimizer.dk


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-06-19 16:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-01  9:15 Concurrency issues with the iptables userspace program andexitcodes Jesper Dangaard Brouer
2006-06-01 16:13 ` Patrick McHardy
2006-06-01 20:16   ` Jesper Dangaard Brouer
2006-06-01 20:45     ` Patrick McHardy
2006-06-08 12:52       ` Jesper Dangaard Brouer
2006-06-14 14:05         ` Patrick McHardy
2006-06-14 14:40           ` Jesper Dangaard Brouer
2006-06-19 16:29             ` Patrick McHardy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.