diff options
author | Peter Jones <pjones@redhat.com> | 2008-06-17 17:09:17 -0400 |
---|---|---|
committer | Peter Jones <pjones@pjones2.localdomain> | 2008-06-17 17:09:17 -0400 |
commit | 48d6db4ca81edea0ffb1795a64e5153b34cdce63 (patch) | |
tree | 3e011c0772e77ad87e31ece33d788bd31098d17b | |
parent | 3874787a757c1160adef557fcf1ed489b4cb6584 (diff) | |
download | initscripts-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.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 |