ia64/xen-unstable

changeset 8259:964d6e7eb3e5

Squelch error messages from calls when failure is handled gracefully.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Wed Dec 07 10:53:47 2005 +0000 (2005-12-07)
parents f308c5707c78
children 6b6e09240435
files tools/examples/xen-hotplug-common.sh
line diff
     1.1 --- a/tools/examples/xen-hotplug-common.sh	Wed Dec 07 10:51:55 2005 +0000
     1.2 +++ b/tools/examples/xen-hotplug-common.sh	Wed Dec 07 10:53:47 2005 +0000
     1.3 @@ -73,7 +73,7 @@ xenstore_read() {
     1.4  # path is not present.
     1.5  #
     1.6  xenstore_read_default() {
     1.7 -  xenstore-read "$1" || echo "$2"
     1.8 +  xenstore-read "$1" 2>/dev/null || echo "$2"
     1.9  }
    1.10  
    1.11  
    1.12 @@ -146,7 +146,7 @@ release_lock()
    1.13  _release_lock()
    1.14  {
    1.15    trap sigerr ERR
    1.16 -  rm -rf "$1" || true
    1.17 +  rm -rf "$1" 2>/dev/null || true
    1.18  }
    1.19  
    1.20