Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libct: don't allow to start second init process
By definition, every container has only 1 init (i.e. PID 1) process. Apparently, libcontainer API supported running more than 1 init, and at least one tests mistakenly used it. Let's not allow that, erroring out if we already have init. Doing otherwise _probably_ results in some confusion inside the library. Fix two cases in libct/int which ran two inits inside a container. Signed-off-by: Kir Kolyshkin <[email protected]>
- Loading branch information