Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] ifplugd return values

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Juuso Alasuutari <iuso AT sourcemage.org>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] ifplugd return values
  • Date: Thu, 27 Apr 2006 22:32:20 +0300

On Friday 07 April 2006 16:57, Lennart Poettering wrote:
> On Thu, 09.03.06 14:47, Juuso Alasuutari (iuso AT elisanet.fi) wrote:
<snip>
> > Also having ifplugd return 3 when daemon is succesfully loaded but
> > no connection is made is a bit strange. Isn't ifplugd's purpose
> > afterall to load a daemon that _monitors_ for connection and
> > consider that a succesful operation, and not treat failure to
> > instantly connect as an error?
>
> When using -w, you shouldn't assume the return value is just a boolean
> success indicator. Instead, as usual ret value 1 means failure and the
> ret values 2 and 3 describe the real status of the link. It makes a
> lot of sense to do it this way, simply because we cannot simply map
> the status and error values to only two distinct values. ;-)

Is this an error in the man page, then?

"1 means link beat detected, 2 stands for link beat not detected,
everything
else is an error."

That's from the section about --wait-on-fork.

Best regards,
Juuso




Archive powered by MHonArc 2.6.24.

Top of Page