Only create a buffered channel of one
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
30f1006b33
commit
3fc929f350
|
@ -221,7 +221,7 @@ func (l *LinuxFactory) Type() string {
|
|||
// This is a low level implementation detail of the reexec and should not be consumed externally
|
||||
func (l *LinuxFactory) StartInitialization() (err error) {
|
||||
// start the signal handler as soon as we can
|
||||
s := make(chan os.Signal, 1024)
|
||||
s := make(chan os.Signal, 1)
|
||||
signal.Notify(s, syscall.SIGCONT)
|
||||
fdStr := os.Getenv("_LIBCONTAINER_INITPIPE")
|
||||
pipefd, err := strconv.Atoi(fdStr)
|
||||
|
|
Loading…
Reference in New Issue