aboutsummaryrefslogtreecommitdiffstats
path: root/profile.d
diff options
context:
space:
mode:
Diffstat (limited to 'profile.d')
-rw-r--r--profile.d/mcheck.csh4
-rw-r--r--profile.d/mcheck.sh7
2 files changed, 11 insertions, 0 deletions
diff --git a/profile.d/mcheck.csh b/profile.d/mcheck.csh
new file mode 100644
index 00000000..94149026
--- /dev/null
+++ b/profile.d/mcheck.csh
@@ -0,0 +1,4 @@
+
+if ( -f /etc/sysconfig/mcheck ) then
+ setenv MALLOC_CHECK_ = `grep "^MALLOC_CHECK_=" /etc/sysconfig/mcheck | cut -d"=" -f2`
+endif
diff --git a/profile.d/mcheck.sh b/profile.d/mcheck.sh
new file mode 100644
index 00000000..35f076cf
--- /dev/null
+++ b/profile.d/mcheck.sh
@@ -0,0 +1,7 @@
+
+if [ -f /etc/sysconfig/mcheck ]; then
+ . /etc/sysconfig/mcheck
+ if [ -n "$MALLOC_CHECK_" ]; then
+ export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
+ fi
+fi