aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2008-06-17 14:24:20 -0400
committerPeter Jones <pjones@pjones2.localdomain>2008-06-17 14:24:20 -0400
commit3874787a757c1160adef557fcf1ed489b4cb6584 (patch)
treeb4fa783ce108562090c8e3c1c326833fe835047f /rc.d
parent9210f82038c7804c43847c42f1049e5e7111477a (diff)
downloadinitscripts-3874787a757c1160adef557fcf1ed489b4cb6584.tar
initscripts-3874787a757c1160adef557fcf1ed489b4cb6584.tar.gz
initscripts-3874787a757c1160adef557fcf1ed489b4cb6584.tar.bz2
initscripts-3874787a757c1160adef557fcf1ed489b4cb6584.tar.xz
initscripts-3874787a757c1160adef557fcf1ed489b4cb6584.zip
Add code to set MALLOC_CHECK_ and MALLOC_PERTURB_ .
Add mcheck to rc.sysinit.
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/rc.sysinit6
1 files changed, 6 insertions, 0 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 432ad434..ba61fc6e 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -798,3 +798,9 @@ fi
wait
[ "$PROMPT" != no ] && rm -f /var/run/getkey_done
+if [ -f /etc/sysconfig/mcheck ]; then
+ . /etc/sysconfig/mcheck
+ if [ -n "$MALLOC_CHECK_" ]; then
+ export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
+ fi
+fi