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] Squelch error messages from calls when failure is handle

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Squelch error messages from calls when failure is handled gracefully.
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 07 Dec 2005 14:20:10 +0000
Delivery-date: Wed, 07 Dec 2005 16:59: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 964d6e7eb3e58478402058d5fdfcb1724b5fbc30
# Parent  f308c5707c789881514bee12309dab24f8875f8d
Squelch error messages from calls when failure is handled gracefully. 

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

diff -r f308c5707c78 -r 964d6e7eb3e5 tools/examples/xen-hotplug-common.sh
--- a/tools/examples/xen-hotplug-common.sh      Wed Dec  7 10:51:55 2005
+++ b/tools/examples/xen-hotplug-common.sh      Wed Dec  7 10:53:47 2005
@@ -73,7 +73,7 @@
 # path is not present.
 #
 xenstore_read_default() {
-  xenstore-read "$1" || echo "$2"
+  xenstore-read "$1" 2>/dev/null || echo "$2"
 }
 
 
@@ -146,7 +146,7 @@
 _release_lock()
 {
   trap sigerr ERR
-  rm -rf "$1" || true
+  rm -rf "$1" 2>/dev/null || true
 }
 
 

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Squelch error messages from calls when failure is handled gracefully., Xen patchbot -unstable <=