summaryrefslogtreecommitdiffstats
path: root/plugins.d/charts.d.plugin
diff options
context:
space:
mode:
Diffstat (limited to 'plugins.d/charts.d.plugin')
-rwxr-xr-xplugins.d/charts.d.plugin6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins.d/charts.d.plugin b/plugins.d/charts.d.plugin
index eda5c0de4..c36a0cde3 100755
--- a/plugins.d/charts.d.plugin
+++ b/plugins.d/charts.d.plugin
@@ -25,6 +25,8 @@ MODULE_NAME="main"
debug=0
TMP_DIR=
chartsd_cleanup() {
+ trap '' EXIT QUIT HUP INT TERM
+
if [ ! -z "$TMP_DIR" -a -d "$TMP_DIR" ]
then
[ $debug -eq 1 ] && echo >&2 "$PROGRAM_NAME: cleaning up temporary directory $TMP_DIR ..."
@@ -32,9 +34,7 @@ chartsd_cleanup() {
fi
exit 0
}
-trap chartsd_cleanup EXIT
-trap chartsd_cleanup SIGHUP
-trap chartsd_cleanup INT
+trap chartsd_cleanup EXIT QUIT HUP INT TERM
if [ $UID = "0" ]
then