mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03: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 {
|
func (c *Container) exec() error {
|
||||||
path := filepath.Join(c.stateDir, execFifoFilename)
|
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)
|
blockingFifoOpenCh := awaitFifoOpen(path)
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
|
|||||||
Reference in New Issue
Block a user