diff options
Diffstat (limited to 'xpp')
-rwxr-xr-x | xpp/init_card_3_23 | 9 | ||||
-rwxr-xr-x | xpp/init_card_4_23 | 6 |
2 files changed, 12 insertions, 3 deletions
diff --git a/xpp/init_card_3_23 b/xpp/init_card_3_23 index f000ec8..5698484 100755 --- a/xpp/init_card_3_23 +++ b/xpp/init_card_3_23 @@ -42,12 +42,17 @@ set -e me=`basename $0` INIT_DIR=`dirname $0` -export XPP_BASE=/proc/xpp +XPP_BASE=/proc/xpp +export XPP_BASE LOGGER="logger -s -t $me" +# Always redirect stderr somewhere, otherwise the shell script will die +# when it tries to do I/O related stuff on closed file descriptor. +# Our default is to throw it down the bit-bucket. +exec 2> /dev/null ## If you wish to trace this script: #exec 2> /tmp/xpp_init_$XPD_NAME -## Altenativly, if you have multiple XPDs: +## Altenativly, if you have multiple XBUS'es: #exec 2> /tmp/xpp_init_$XBUS_NAME_$XPD_NAME #set -x diff --git a/xpp/init_card_4_23 b/xpp/init_card_4_23 index 76beaff..155a029 100755 --- a/xpp/init_card_4_23 +++ b/xpp/init_card_4_23 @@ -44,9 +44,13 @@ XPP_BASE=/proc/xpp export XPP_BASE LOGGER="logger -s -t $me" +# Always redirect stderr somewhere, otherwise the shell script will die +# when it tries to do I/O related stuff on closed file descriptor. +# Our default is to throw it down the bit-bucket. +exec 2> /dev/null ## If you wish to trace this script: #exec 2> /tmp/xpp_init_$XPD_NAME -## Altenativly, if you have multiple XPDs: +## Altenativly, if you have multiple XBUS'es: #exec 2> /tmp/xpp_init_$XBUS_NAME_$XPD_NAME #set -x |