Fixed potential issue with forking in process_based_isolation_module.cpp.

git-svn-id: https://svn.apache.org/repos/asf/incubator/mesos/trunk@1404236 13f79535-47bb-0310-9956-ffa450edef68
Fixed bug in usage of memset.

git-svn-id: https://svn.apache.org/repos/asf/incubator/mesos/trunk@1404237 13f79535-47bb-0310-9956-ffa450edef68
Organized cgroups used by the slave in a hierarchical structure.

From: Jie Yu <yujie.jay@gmail.com>
Review: https://reviews.apache.org/r/6501

git-svn-id: https://svn.apache.org/repos/asf/incubator/mesos/trunk@1404238 13f79535-47bb-0310-9956-ffa450edef68
Updated balloon_framework_test.sh to properly clean up (using
support/atexit.sh).

git-svn-id: https://svn.apache.org/repos/asf/incubator/mesos/trunk@1404239 13f79535-47bb-0310-9956-ffa450edef68
Updated the cgroups isolation module to use
'memory.soft_limit_in_bytes' when decreasing the memory limit. Also
made some small simplifications to cleanup the code base (some of
which are from https://reviews.apache.org/r/6534, which is discarded
for now).

git-svn-id: https://svn.apache.org/repos/asf/incubator/mesos/trunk@1404240 13f79535-47bb-0310-9956-ffa450edef68
Added _advisory_ file locking so that we don't attempt to remove valid
cgroups if a second slave is started on a host (e.g., by accident).

git-svn-id: https://svn.apache.org/repos/asf/incubator/mesos/trunk@1404241 13f79535-47bb-0310-9956-ffa450edef68
Minor reordering of initialization sequences.

git-svn-id: https://svn.apache.org/repos/asf/incubator/mesos/trunk@1404242 13f79535-47bb-0310-9956-ffa450edef68
Added a retry limit on cgroups freezing attempts.

From: Ben Mahler <benjamin.mahler@gmail.com>
Review: https://reviews.apache.org/r/7712

git-svn-id: https://svn.apache.org/repos/asf/incubator/mesos/trunk@1404243 13f79535-47bb-0310-9956-ffa450edef68
Updated cgroups::killTasks to retry the "freeze, kill, thaw, watch"
steps until there are no more tasks.

From: Ben Mahler <benjamin.mahler@gmail.com>
Review: https://reviews.apache.org/r/7756

git-svn-id: https://svn.apache.org/repos/asf/incubator/mesos/trunk@1404244 13f79535-47bb-0310-9956-ffa450edef68
Fixed bug where a status update acknowledgment is sent after the
driver has been aborted.

From: Vinod Kone <vinodkone@gmail.com>
Review: https://reviews.apache.org/r/7782

git-svn-id: https://svn.apache.org/repos/asf/incubator/mesos/trunk@1404245 13f79535-47bb-0310-9956-ffa450edef68
Fixed the master detector to only send a NoMasterDetected message to a
leading master when the detector gets partitioned and we decide to
manually expire the session.

From: Vinod Kone <vinodkone@gmail.com>
Review: https://reviews.apache.org/r/7746

git-svn-id: https://svn.apache.org/repos/asf/incubator/mesos/trunk@1404246 13f79535-47bb-0310-9956-ffa450edef68
Added 'atexit.sh' to distribution.

git-svn-id: https://svn.apache.org/repos/asf/incubator/mesos/trunk@1404253 13f79535-47bb-0310-9956-ffa450edef68
Updated Slave::executorExited to Slave::executorTerminated and
distinguished between when the isolation module destroys an executor
versus when the executor exits or is killed by a signal (from the
slave or otherwise). Also, send TASK_FAILED for tasks "lost" when an
executor is destroyed by the isolation module.

From: Vinod Kone <vinodkone@gmail.com>
Review: https://reviews.apache.org/r/7887

git-svn-id: https://svn.apache.org/repos/asf/incubator/mesos/trunk@1406931 13f79535-47bb-0310-9956-ffa450edef68
Created an Allocator facade that wraps AllocatorProcess. Also improved
MockAllocatorProcess.

From: Vinod Kone <vinodkone@gmail.com>
Review: https://reviews.apache.org/r/7720

git-svn-id: https://svn.apache.org/repos/asf/incubator/mesos/trunk@1406932 13f79535-47bb-0310-9956-ffa450edef68
Removed old Python webui remnants from configure.ac.

From: Ben Mahler <benjamin.mahler@gmail.com>
Review: https://reviews.apache.org/r/7770

git-svn-id: https://svn.apache.org/repos/asf/incubator/mesos/trunk@1406933 13f79535-47bb-0310-9956-ffa450edef68
Added missing webui pages to the distribution.

From: Ben Mahler <benjamin.mahler@gmail.com>
Review: https://reviews.apache.org/r/7846

git-svn-id: https://svn.apache.org/repos/asf/incubator/mesos/trunk@1406934 13f79535-47bb-0310-9956-ffa450edef68
Refactored webui to display "data" units as B, KB, MB, GM, and TB as
appropriate.

From: Ben Mahler <benjamin.mahler@gmail.com>
Review: https://reviews.apache.org/r/7856

git-svn-id: https://svn.apache.org/repos/asf/incubator/mesos/trunk@1406935 13f79535-47bb-0310-9956-ffa450edef68
Added a flag for the cgroups subsystems that the cgroups isolation
module should attempt to attach and/or use.

git-svn-id: https://svn.apache.org/repos/asf/incubator/mesos/trunk@1406936 13f79535-47bb-0310-9956-ffa450edef68
Updated version to 0.11.0.

git-svn-id: https://svn.apache.org/repos/asf/incubator/mesos/trunk@1406937 13f79535-47bb-0310-9956-ffa450edef68
Changed compatibility checking between Mesos JAR and native library
versions to only fail when major versions differ.

From: Vinod Kone <vinodkone@gmail.com>
Review: https://reviews.apache.org/r/7971

git-svn-id: https://svn.apache.org/repos/asf/incubator/mesos/trunk@1407241 13f79535-47bb-0310-9956-ffa450edef68