aboutsummaryrefslogtreecommitdiffstats
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
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.
-rw-r--r--mcheck.csh4
-rw-r--r--mcheck.sh7
-rw-r--r--profile.d/mcheck.csh4
-rw-r--r--profile.d/mcheck.sh7
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