WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] Use new do_without_error function to squelch the error w

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Use new do_without_error function to squelch the error when closing down the
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 09 Dec 2005 14:44:12 +0000
Delivery-date: Fri, 09 Dec 2005 14:47:47 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User emellor@xxxxxxxxxxxxxxxxxxxxxx
# Node ID 10220071deff95bf1c30432d5a676089e36d527e
# Parent  2b09e58cb1088104c1a3425c49cfd386fc04587c
Use new do_without_error function to squelch the error when closing down the
interface.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>

diff -r 2b09e58cb108 -r 10220071deff tools/examples/vif-nat
--- a/tools/examples/vif-nat    Fri Dec  9 10:50:49 2005
+++ b/tools/examples/vif-nat    Fri Dec  9 10:51:20 2005
@@ -155,7 +155,7 @@
         ;;
     offline)
         [ "$dhcp" != 'no' ] && dhcp_down
-        ifconfig "$vif" down || true
+        do_without_error ifconfig "$vif" down
         ;;
 esac
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Use new do_without_error function to squelch the error when closing down the, Xen patchbot -unstable <=