summaryrefslogtreecommitdiffstats
path: root/recipes-containers/runc/runc-docker/0001-runc-docker-SIGUSR1-daemonize.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-containers/runc/runc-docker/0001-runc-docker-SIGUSR1-daemonize.patch')
-rw-r--r--recipes-containers/runc/runc-docker/0001-runc-docker-SIGUSR1-daemonize.patch36
1 files changed, 17 insertions, 19 deletions
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 b3bd0680..9ccbccb2 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
@@ -29,19 +29,19 @@ Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
29 utils_linux.go | 2 +- 29 utils_linux.go | 2 +-
30 2 files changed, 51 insertions(+), 5 deletions(-) 30 2 files changed, 51 insertions(+), 5 deletions(-)
31 31
32diff --git a/src/import/signals.go b/src/import/signals.go 32Index: git/src/import/signals.go
33index 910ea1ee..b6a23476 100644 33===================================================================
34--- a/src/import/signals.go 34--- git.orig/src/import/signals.go
35+++ b/src/import/signals.go 35+++ git/src/import/signals.go
36@@ -6,6 +6,7 @@ import ( 36@@ -6,6 +6,7 @@
37 "os" 37 "os"
38 "os/signal" 38 "os/signal"
39 "syscall" // only for Signal 39 "syscall" // only for Signal
40+ "strconv" 40+ "strconv"
41 41
42 "github.com/Sirupsen/logrus"
43 "github.com/opencontainers/runc/libcontainer" 42 "github.com/opencontainers/runc/libcontainer"
44@@ -56,9 +57,6 @@ type signalHandler struct { 43 "github.com/opencontainers/runc/libcontainer/system"
44@@ -56,9 +57,6 @@
45 func (h *signalHandler) forward(process *libcontainer.Process, tty *tty, detach bool) (int, error) { 45 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 46 // make sure we know the pid of our main process so that we can return
47 // after it dies. 47 // after it dies.
@@ -51,7 +51,7 @@ index 910ea1ee..b6a23476 100644
51 51
52 pid1, err := process.Pid() 52 pid1, err := process.Pid()
53 if err != nil { 53 if err != nil {
54@@ -68,12 +66,60 @@ func (h *signalHandler) forward(process *libcontainer.Process, tty *tty, detach 54@@ -68,12 +66,61 @@
55 if h.notifySocket != nil { 55 if h.notifySocket != nil {
56 if detach { 56 if detach {
57 h.notifySocket.run(pid1) 57 h.notifySocket.run(pid1)
@@ -110,14 +110,15 @@ index 910ea1ee..b6a23476 100644
110+ } 110+ }
111+ return 0, nil 111+ return 0, nil
112+ } 112+ }
113 // perform the initial tty resize. 113+
114 tty.resize() 114 // Perform the initial tty resize. Always ignore errors resizing because
115 for s := range h.signals { 115 // stdout might have disappeared (due to races with when SIGHUP is sent).
116diff --git a/src/import/utils_linux.go b/src/import/utils_linux.go 116 _ = tty.resize()
117index e6d31b35..1bb80a63 100644 117Index: git/src/import/utils_linux.go
118--- a/src/import/utils_linux.go 118===================================================================
119+++ b/src/import/utils_linux.go 119--- git.orig/src/import/utils_linux.go
120@@ -308,7 +308,7 @@ func (r *runner) run(config *specs.Process) (int, error) { 120+++ git/src/import/utils_linux.go
121@@ -338,7 +338,7 @@
121 if err != nil { 122 if err != nil {
122 r.terminate(process) 123 r.terminate(process)
123 } 124 }
@@ -126,6 +127,3 @@ index e6d31b35..1bb80a63 100644
126 return 0, nil 127 return 0, nil
127 } 128 }
128 r.destroy() 129 r.destroy()
129--
1302.11.0
131