mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-10 21:53:57 +08:00
libct: factor handleFifo out of c.exec
No functional change. To be used by the next patch. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
@@ -232,7 +232,10 @@ func (c *Container) Exec() error {
|
||||
|
||||
func (c *Container) exec() error {
|
||||
path := filepath.Join(c.stateDir, execFifoFilename)
|
||||
pid := c.initProcess.pid()
|
||||
return handleFifo(path, c.initProcess.pid())
|
||||
}
|
||||
|
||||
func handleFifo(path string, pid int) error {
|
||||
blockingFifoOpenCh := awaitFifoOpen(path)
|
||||
for {
|
||||
select {
|
||||
|
||||
Reference in New Issue
Block a user