diff options
author | Ira Cooper <ira@samba.org> | 2016-03-03 13:47:32 -0500 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2016-03-05 00:39:48 +0100 |
commit | 58d3462bc58290d8eb5e554c6c59cf6b73ccf58a (patch) | |
tree | a34c7040fb8adf0c710e1c687c207ad475ed589e /source3/lib/dumpcore.c | |
parent | 85e414aefc0c3e5db51d8426bdba62dc5bcc5420 (diff) | |
download | samba-58d3462bc58290d8eb5e554c6c59cf6b73ccf58a.tar.gz |
source3: Honor the core soft limit of the OS.
We should honor the soft limits set by the operating system.
In any case, 16M doesn't make a useful coredump for modern
Samba.
Signed-off-by: Ira Cooper <ira@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Sat Mar 5 00:39:48 CET 2016 on sn-devel-144
Diffstat (limited to 'source3/lib/dumpcore.c')
-rw-r--r-- | source3/lib/dumpcore.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/source3/lib/dumpcore.c b/source3/lib/dumpcore.c index 487ccecc742..c72aa882bd8 100644 --- a/source3/lib/dumpcore.c +++ b/source3/lib/dumpcore.c @@ -251,21 +251,6 @@ void dump_core_setup(const char *progname, const char *log_file) goto out; } - -#ifdef HAVE_GETRLIMIT -#ifdef RLIMIT_CORE - { - struct rlimit rlp; - getrlimit(RLIMIT_CORE, &rlp); - rlp.rlim_cur = MAX(16*1024*1024,rlp.rlim_cur); - setrlimit(RLIMIT_CORE, &rlp); - getrlimit(RLIMIT_CORE, &rlp); - DEBUG(3,("Maximum core file size limits now %d(soft) %d(hard)\n", - (int)rlp.rlim_cur,(int)rlp.rlim_max)); - } -#endif -#endif - /* FIXME: if we have a core-plus-pid facility, configurably set * this up here. */ |