aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>1997-10-09 13:03:12 +0000
committerErik Troan <ewt@redhat.com>1997-10-09 13:03:12 +0000
commit535d44b3817e63611eef42e2122245ce5f07991a (patch)
treee4be625b53341f7e2c9883f8503a81b004a967a1 /rc.d
parentb55301403c4bb43288a3df4608cdc30200a2b0aa (diff)
downloadinitscripts-535d44b3817e63611eef42e2122245ce5f07991a.tar
initscripts-535d44b3817e63611eef42e2122245ce5f07991a.tar.gz
initscripts-535d44b3817e63611eef42e2122245ce5f07991a.tar.bz2
initscripts-535d44b3817e63611eef42e2122245ce5f07991a.tar.xz
initscripts-535d44b3817e63611eef42e2122245ce5f07991a.zip
added ulimit -c 0 to daemon function
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/init.d/functions4
1 files changed, 4 insertions, 0 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index 7e42deb1..9fadf536 100755
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -29,6 +29,10 @@ daemon() {
# echo basename of the program.
echo -n "$base "
+ # make sure it doesn't core dump anywhere; while this could mask
+ # problems with the daemon, it also closes some security problems
+ ulimit -c 0
+
# And start it up.
$*
}