aboutsummaryrefslogtreecommitdiffstats
path: root/mcheck.sh
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2008-06-17 17:09:17 -0400
committerPeter Jones <pjones@pjones2.localdomain>2008-06-17 17:09:17 -0400
commit48d6db4ca81edea0ffb1795a64e5153b34cdce63 (patch)
tree3e011c0772e77ad87e31ece33d788bd31098d17b /mcheck.sh
parent3874787a757c1160adef557fcf1ed489b4cb6584 (diff)
downloadinitscripts-48d6db4ca81edea0ffb1795a64e5153b34cdce63.tar
initscripts-48d6db4ca81edea0ffb1795a64e5153b34cdce63.tar.gz
initscripts-48d6db4ca81edea0ffb1795a64e5153b34cdce63.tar.bz2
initscripts-48d6db4ca81edea0ffb1795a64e5153b34cdce63.tar.xz
initscripts-48d6db4ca81edea0ffb1795a64e5153b34cdce63.zip
Move this stuff to profile.d.
Diffstat (limited to 'mcheck.sh')
-rw-r--r--mcheck.sh7
1 files changed, 7 insertions, 0 deletions
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