aboutsummaryrefslogtreecommitdiffstats
path: root/vespabase
diff options
context:
space:
mode:
authorArne H Juul <arnej@yahoo-inc.com>2016-09-12 11:12:13 +0200
committerArne H Juul <arnej@yahoo-inc.com>2016-09-12 11:12:13 +0200
commit6dbe88a8c042799d850516f97c256ecdc787c0a3 (patch)
tree14e2bbf2803ff2c71725ce9d6644c0847d0132ee /vespabase
parent885b3c0c37bcadc5379698eb586ccfc32b4b1e73 (diff)
ignore SIGTERM during valgrind startup
* we've seen some false valgrind positives when the application didn't finish loading shared libraries, etc before shutdown (TERM signal) happened. We may need to reset SIGTERM handling to default in some more places, but most of our programs already catch and handle it with controlled shutdown.
Diffstat (limited to 'vespabase')
-rwxr-xr-xvespabase/src/start-cbinaries.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/vespabase/src/start-cbinaries.sh b/vespabase/src/start-cbinaries.sh
index e4037186324..91ce8edede4 100755
--- a/vespabase/src/start-cbinaries.sh
+++ b/vespabase/src/start-cbinaries.sh
@@ -232,6 +232,8 @@ else
else
export LD_PRELOAD=""
fi
+ # ignore signal until shared libraries have loaded, etc:
+ trap "" SIGTERM
log_debug_message "Starting : " \
valgrind $VESPA_VALGRIND_OPT --log-file=/home/y/tmp/valgrind.$bname.log.$$ $0-bin "$@"
exec valgrind $VESPA_VALGRIND_OPT --log-file=/home/y/tmp/valgrind.$bname.log.$$ $0-bin "$@"