summaryrefslogtreecommitdiff
path: root/xpp/init_card_4_23
diff options
context:
space:
mode:
Diffstat (limited to 'xpp/init_card_4_23')
-rwxr-xr-xxpp/init_card_4_236
1 files changed, 5 insertions, 1 deletions
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