1 |
On 10 Mar 2017 11:22, Brian Dolbec wrote: |
2 |
> Subject: [PATCH 1/7] Move the signal handler into the StageBase class so it |
3 |
> can handle unbind() cleanup |
4 |
> |
5 |
> Not quite complete, still errors on some unmounting |
6 |
|
7 |
i don't think moving signal handling into a random module makes sense. |
8 |
the main loop should be responsible for this business. i.e. where the |
9 |
code is now (or in catalyst._main). |
10 |
|
11 |
if the only thing you want to handle is clean up of mounts, then we |
12 |
should be looking at mount namespaces instead. unlike other namespaces, |
13 |
support for mount namespaces has been around forever and can't be turned |
14 |
off in the kernel. |
15 |
|
16 |
the releng repo deals with this by running everything through unshare. |
17 |
|
18 |
snakeoil already includes namespace support. i'll send a patch. |
19 |
-mike |