aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/functions
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d/init.d/functions')
-rwxr-xr-xrc.d/init.d/functions12
1 files changed, 6 insertions, 6 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index 5f4e71b6..fcd61237 100755
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -253,9 +253,9 @@ success() {
initlog $INITLOG_ARGS -n $0 -s "$1" -e 1
else
# silly hack to avoid EPIPE killing rc.sysinit
- trap SIGPIPE
+ trap "" SIGPIPE
echo "$INITLOG_ARGS -n $0 -s \"$1\" -e 1" >&21
- trap -
+ trap - SIGPIPE
fi
[ "$BOOTUP" != "verbose" ] && echo_success
return 0
@@ -267,9 +267,9 @@ failure() {
if [ -z "$IN_INITLOG" ]; then
initlog $INITLOG_ARGS -n $0 -s "$1" -e 2
else
- trap SIGPIPE
+ trap "" SIGPIPE
echo "$INITLOG_ARGS -n $0 -s \"$1\" -e 2" >&21
- trap -
+ trap - SIGPIPE
fi
[ "$BOOTUP" != "verbose" ] && echo_failure
return $rc
@@ -281,9 +281,9 @@ passed() {
if [ -z "$IN_INITLOG" ]; then
initlog $INITLOG_ARGS -n $0 -s "$1" -e 1
else
- trap SIGPIPE
+ trap "" SIGPIPE
echo "$INITLOG_ARGS -n $0 -s \"$1\" -e 1" >&21
- trap -
+ trap - SIGPIPE
fi
[ "$BOOTUP" != "verbose" ] && echo_passed
return $rc