Skip to content
This repository was archived by the owner on Jan 9, 2020. It is now read-only.

Commit 888091e

Browse files
author
Vishvananda Ishaya Abrams
committed
no init outside of namespace
1 parent 9508c88 commit 888091e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ fn run_container(
777777
spec: &Spec,
778778
init_pid: i32,
779779
mut init: bool,
780-
init_only: bool,
780+
mut init_only: bool,
781781
daemonize: bool,
782782
consolefd: RawFd,
783783
) -> Result<(i32)> {
@@ -830,6 +830,7 @@ fn run_container(
830830
}
831831
if !enter_pid {
832832
init = false;
833+
init_only = false;
833834
}
834835

835836

0 commit comments

Comments
 (0)