Skip to content

Commit 2253475

Browse files
committed
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>
1 parent b0762c7 commit 2253475

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libcontainer/container_linux.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,10 @@ func (c *Container) Exec() error {
232232

233233
func (c *Container) exec() error {
234234
path := filepath.Join(c.stateDir, execFifoFilename)
235-
pid := c.initProcess.pid()
235+
return handleFifo(path, c.initProcess.pid())
236+
}
237+
238+
func handleFifo(path string, pid int) error {
236239
blockingFifoOpenCh := awaitFifoOpen(path)
237240
for {
238241
select {

0 commit comments

Comments
 (0)