diff options
Diffstat (limited to 'recipes-containers/runc/runc-docker/0001-runc-Add-console-socket-dev-null.patch')
| -rw-r--r-- | recipes-containers/runc/runc-docker/0001-runc-Add-console-socket-dev-null.patch | 32 |
1 files changed, 0 insertions, 32 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 deleted file mode 100644 index cb0ddc37..00000000 --- a/recipes-containers/runc/runc-docker/0001-runc-Add-console-socket-dev-null.patch +++ /dev/null | |||
| @@ -1,32 +0,0 @@ | |||
| 1 | From 3fff2a3505fba1d1ff0074edff15708a77f6cfa9 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Jason Wessel <jason.wessel@windriver.com> | ||
| 3 | Date: Wed, 12 Jul 2017 13:35:03 -0700 | ||
| 4 | Subject: [PATCH] runc: Add --console-socket=/dev/null | ||
| 5 | |||
| 6 | This allows for setting up a detached session where you do not want to | ||
| 7 | set the terminal to false in the config.json. More or less this is a | ||
| 8 | runtime override. | ||
| 9 | |||
| 10 | Upstream-Status: Inappropriate [embedded specific] | ||
| 11 | |||
| 12 | Signed-off-by: Jason Wessel <jason.wessel@windriver.com> | ||
| 13 | --- | ||
| 14 | utils_linux.go | 5 +++++ | ||
| 15 | 1 file changed, 5 insertions(+) | ||
| 16 | |||
| 17 | Index: git/src/import/utils_linux.go | ||
| 18 | =================================================================== | ||
| 19 | --- git.orig/src/import/utils_linux.go | ||
| 20 | +++ git/src/import/utils_linux.go | ||
| 21 | @@ -267,6 +267,11 @@ | ||
| 22 | } | ||
| 23 | |||
| 24 | func (r *runner) run(config *specs.Process) (int, error) { | ||
| 25 | + if (r.consoleSocket == "/dev/null") { | ||
| 26 | + r.detach = false | ||
| 27 | + r.consoleSocket = "" | ||
| 28 | + config.Terminal = false | ||
| 29 | + } | ||
| 30 | var err error | ||
| 31 | defer func() { | ||
| 32 | if err != nil { | ||
