Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] Re: [PATCH] Enable cgroup, ipc-sandbox & network-sandbox by default
Date: Wed, 08 Apr 2015 15:48:43
Message-Id: 55254DD5.4010802@gentoo.org
In Reply to: [gentoo-portage-dev] Re: [PATCH] Enable cgroup, ipc-sandbox & network-sandbox by default by Martin Vaeth
1 On 04/08/2015 07:03 AM, Martin Vaeth wrote:
2 > Michał Górny <mgorny@g.o> wrote:
3 >>
4 >> All the features degrade gracefully when the relevant kernel features
5 >> are not available.
6 >
7 > In conncetion with some old version of rescuecd, and fetching files,
8 > one can run into troubles with FEATURES=cgroups
9 >
10 > https://forums.gentoo.org/viewtopic-t-1009074-start-0-postdays-0-postorder-asc-highlight-.html
11 >
12 > (The bad thing was that this error happened, before it was clear
13 > that portage attempted to fetch files)
14
15 "IOError: [Errno 22] Invalid argument" is thrown when writing to
16 cgroup.procs in portage.process._exec(). We need to detect whatever
17 conditions cause this inside AbstractEbuildProcess._start(), and disable
18 the cgroup usage in that case.
19 --
20 Thanks,
21 Zac