summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorSteven Danneman <steven.danneman@isilon.com>2009-03-04 11:04:31 -0800
committerSteven Danneman <steven.danneman@isilon.com>2009-03-04 11:07:27 -0800
commit5a9f668dabb62efd70054dc35d19c60d027793b5 (patch)
tree171908a546600442b812f1a2c845fc65bcb85cd1 /source3/lib
parentddc1864fb22dfcd86e3a8688cfd12e0dccd835da (diff)
downloadsamba-5a9f668dabb62efd70054dc35d19c60d027793b5.tar.gz
samba-5a9f668dabb62efd70054dc35d19c60d027793b5.tar.bz2
samba-5a9f668dabb62efd70054dc35d19c60d027793b5.zip
s3: Remove madvise support
This reverts 193be432. The MADVISE_PROTECT is inherited by all child processes and cannot be unset. The intention of the original patch was to protect the parent process, but allow children to be killed in low memory. Since this isn't possible with the current API, reverting the whole feature.
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 89f7be8e6c..ec794ca74e 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -899,13 +899,6 @@ bool reinit_after_fork(struct messaging_context *msg_ctx,
* numbers as each other */
set_need_random_reseed();
-#ifdef WITH_MADVISE_PROTECTED
- /* Protect parent process from being killed by kernel when system
- * memory is low. Child processes can still be killed */
- if(!parent_longlived)
- madvise(NULL,0,MADV_PROTECT);
-#endif
-
/* tdb needs special fork handling */
if (tdb_reopen_all(parent_longlived ? 1 : 0) == -1) {
DEBUG(0,("tdb_reopen_all failed.\n"));