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:
Kir Kolyshkin
2026-03-19 15:56:59 -07:00
parent b0762c7af1
commit 2253475660
+4 -1
View File
@@ -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 {