diff options
-rw-r--r-- | mcheck.csh | 4 | ||||
-rw-r--r-- | mcheck.sh | 7 | ||||
-rw-r--r-- | profile.d/mcheck.csh | 4 | ||||
-rw-r--r-- | profile.d/mcheck.sh | 7 |
4 files changed, 22 insertions, 0 deletions
diff --git a/mcheck.csh b/mcheck.csh new file mode 100644 index 00000000..94149026 --- /dev/null +++ b/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/mcheck.sh b/mcheck.sh new file mode 100644 index 00000000..35f076cf --- /dev/null +++ b/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 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 |