mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
Only create a buffered channel of one
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user