[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Squelch error messages from calls when failure is handled gracefully.



# 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.