LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: ipvsadm return code patch

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: ipvsadm return code patch
From: Padraig Brady <padraig@xxxxxxxxxxxxx>
Date: Fri, 09 Nov 2001 16:18:14 +0000
Wensong Zhang wrote:


On Wed, 7 Nov 2001, Padraig Brady wrote:


This 1 line patch is useful for me and I don't think it
will break anything. It's against 0.8.2 and basically
returns a specific error code from ipvsadm.



ipvsadm has already printed error message of errno, I don't see why return
error instead of -1, when error happens.

Regards,

Wensong


Printing the error code is only good for humans.
If you want to programattically control ipvsadm
you need the error code returned.

cheers,
Padraig.



<Prev in Thread] Current Thread [Next in Thread>