(Bug 45854) Unset the cgroup if we don't have a memory limit
authorPlatonides <platonides@gmail.com>
Fri, 8 Mar 2013 09:51:55 +0000 (10:51 +0100)
committerPlatonides <platonides@gmail.com>
Fri, 8 Mar 2013 09:51:55 +0000 (10:51 +0100)
commite77397fc1de324dfc6d7b515e9440bd564311dd9
treedb461004553e3568610a9668aa1efbc23ec17d88
parent5a63f7084342e1716267f14e448f8513ff0614fd
(Bug 45854) Unset the cgroup if we don't have a memory limit

We only create the cgroup if there's a memory limit, but it
tried to always cleanup it, regardless if it was used or not,
resulting in a «/sys/fs/cgroup/memory/mediawiki/job/32466/tasks:
No such file or directory» error, when run with MW_CGROUP='mediawiki';
MW_MEM_LIMIT=0

Change-Id: I7fdb545b336ead62aa743b1bc3afdbfba2c3113f
includes/limit.sh