diff options
Diffstat (limited to 'recipes-containers/runc/runc-docker')
-rw-r--r-- | recipes-containers/runc/runc-docker/0001-runc-Add-console-socket-dev-null.patch | 19 | ||||
-rw-r--r-- | recipes-containers/runc/runc-docker/0001-runc-docker-SIGUSR1-daemonize.patch | 17 |
2 files changed, 18 insertions, 18 deletions
diff --git a/recipes-containers/runc/runc-docker/0001-runc-Add-console-socket-dev-null.patch b/recipes-containers/runc/runc-docker/0001-runc-Add-console-socket-dev-null.patch index 48c1250d..bcf4c103 100644 --- a/recipes-containers/runc/runc-docker/0001-runc-Add-console-socket-dev-null.patch +++ b/recipes-containers/runc/runc-docker/0001-runc-Add-console-socket-dev-null.patch | |||
@@ -12,11 +12,11 @@ Signed-off-by: Jason Wessel <jason.wessel@windriver.com> | |||
12 | utils_linux.go | 5 +++++ | 12 | utils_linux.go | 5 +++++ |
13 | 1 file changed, 5 insertions(+) | 13 | 1 file changed, 5 insertions(+) |
14 | 14 | ||
15 | diff --git a/utils_linux.go b/utils_linux.go | 15 | Index: git/src/import/utils_linux.go |
16 | index 8085f7fe..e6d31b35 100644 | 16 | =================================================================== |
17 | --- a/src/import/utils_linux.go | 17 | --- git.orig/src/import/utils_linux.go |
18 | +++ b/src/import/utils_linux.go | 18 | +++ git/src/import/utils_linux.go |
19 | @@ -227,6 +227,11 @@ type runner struct { | 19 | @@ -267,6 +267,11 @@ |
20 | } | 20 | } |
21 | 21 | ||
22 | func (r *runner) run(config *specs.Process) (int, error) { | 22 | func (r *runner) run(config *specs.Process) (int, error) { |
@@ -25,9 +25,6 @@ index 8085f7fe..e6d31b35 100644 | |||
25 | + r.consoleSocket = "" | 25 | + r.consoleSocket = "" |
26 | + config.Terminal = false | 26 | + config.Terminal = false |
27 | + } | 27 | + } |
28 | if err := r.checkTerminal(config); err != nil { | 28 | var err error |
29 | r.destroy() | 29 | defer func() { |
30 | return -1, err | 30 | if err != nil { |
31 | -- | ||
32 | 2.11.0 | ||
33 | |||
diff --git a/recipes-containers/runc/runc-docker/0001-runc-docker-SIGUSR1-daemonize.patch b/recipes-containers/runc/runc-docker/0001-runc-docker-SIGUSR1-daemonize.patch index 0af74952..98b02044 100644 --- a/recipes-containers/runc/runc-docker/0001-runc-docker-SIGUSR1-daemonize.patch +++ b/recipes-containers/runc/runc-docker/0001-runc-docker-SIGUSR1-daemonize.patch | |||
@@ -33,15 +33,17 @@ Index: git/src/import/signals.go | |||
33 | =================================================================== | 33 | =================================================================== |
34 | --- git.orig/src/import/signals.go | 34 | --- git.orig/src/import/signals.go |
35 | +++ git/src/import/signals.go | 35 | +++ git/src/import/signals.go |
36 | @@ -6,6 +6,7 @@ | 36 | @@ -5,7 +5,9 @@ |
37 | import ( | ||
37 | "os" | 38 | "os" |
38 | "os/signal" | 39 | "os/signal" |
39 | "syscall" // only for Signal | 40 | + "syscall" // only for Signal |
40 | + "strconv" | ||
41 | 41 | ||
42 | + "strconv" | ||
42 | "github.com/opencontainers/runc/libcontainer" | 43 | "github.com/opencontainers/runc/libcontainer" |
43 | "github.com/opencontainers/runc/libcontainer/system" | 44 | "github.com/opencontainers/runc/libcontainer/system" |
44 | @@ -56,9 +57,6 @@ | 45 | "github.com/opencontainers/runc/libcontainer/utils" |
46 | @@ -55,9 +57,6 @@ | ||
45 | func (h *signalHandler) forward(process *libcontainer.Process, tty *tty, detach bool) (int, error) { | 47 | func (h *signalHandler) forward(process *libcontainer.Process, tty *tty, detach bool) (int, error) { |
46 | // make sure we know the pid of our main process so that we can return | 48 | // make sure we know the pid of our main process so that we can return |
47 | // after it dies. | 49 | // after it dies. |
@@ -51,12 +53,13 @@ Index: git/src/import/signals.go | |||
51 | 53 | ||
52 | pid1, err := process.Pid() | 54 | pid1, err := process.Pid() |
53 | if err != nil { | 55 | if err != nil { |
54 | @@ -68,11 +66,60 @@ | 56 | @@ -67,12 +66,61 @@ |
55 | if h.notifySocket != nil { | 57 | if h.notifySocket != nil { |
56 | if detach { | 58 | if detach { |
57 | h.notifySocket.run(pid1) | 59 | h.notifySocket.run(pid1) |
58 | - return 0, nil | 60 | - return 0, nil |
59 | } | 61 | } |
62 | h.notifySocket.run(os.Getpid()) | ||
60 | go h.notifySocket.run(0) | 63 | go h.notifySocket.run(0) |
61 | } | 64 | } |
62 | 65 | ||
@@ -117,7 +120,7 @@ Index: git/src/import/utils_linux.go | |||
117 | =================================================================== | 120 | =================================================================== |
118 | --- git.orig/src/import/utils_linux.go | 121 | --- git.orig/src/import/utils_linux.go |
119 | +++ git/src/import/utils_linux.go | 122 | +++ git/src/import/utils_linux.go |
120 | @@ -347,7 +347,7 @@ | 123 | @@ -349,7 +349,7 @@ |
121 | if err != nil { | 124 | if err != nil { |
122 | r.terminate(process) | 125 | r.terminate(process) |
123 | } | 126 | } |
@@ -125,4 +128,4 @@ Index: git/src/import/utils_linux.go | |||
125 | + if (detach && os.Getenv("SIGUSR1_PARENT_PID") == "") { | 128 | + if (detach && os.Getenv("SIGUSR1_PARENT_PID") == "") { |
126 | return 0, nil | 129 | return 0, nil |
127 | } | 130 | } |
128 | r.destroy() | 131 | if err == nil { |