All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: Jesper Dangaard Brouer <jdb@comx.dk>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: Concurrency issues with the iptables userspace program andexitcodes
Date: Thu, 01 Jun 2006 18:13:27 +0200	[thread overview]
Message-ID: <447F1227.7050900@trash.net> (raw)
In-Reply-To: <1149153349.28481.15.camel@localhost.localdomain>

Jesper Dangaard Brouer wrote:
> 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.


Wouldn't it make more sense to just make sure you don't have iptables
commands running concurrently?

  reply	other threads:[~2006-06-01 16:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-01  9:15 Concurrency issues with the iptables userspace program andexitcodes Jesper Dangaard Brouer
2006-06-01 16:13 ` Patrick McHardy [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=447F1227.7050900@trash.net \
    --to=kaber@trash.net \
    --cc=jdb@comx.dk \
    --cc=netfilter-devel@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.