From 5516836a74e12756161cd3a6ef7e05c7e89c378c Mon Sep 17 00:00:00 2001
From: panwenxiang <panwenxiang@huawei.com>
Date: Wed, 22 Aug 2018 17:06:01 +0800
Subject: [PATCH] runc: ignore exec.fifo removing not exist error

[Changelog]:cherry-pick from vtwrse <4af7ee1635962fe3bd86ac87064fdcd7e60c1135>
Change-Id: I34a30672fb92c974965b3a53cfb8ccc75932e6d8
Signed-off-by: jiangpengfei9 <jiangpengfei9@huawei.com>
---
 libcontainer/container_linux.go | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/libcontainer/container_linux.go b/libcontainer/container_linux.go
index 5f1a494..f8ce1cc 100644
--- a/libcontainer/container_linux.go
+++ b/libcontainer/container_linux.go
@@ -327,7 +327,10 @@ func handleFifoResult(result openResult) error {
 	if err := readFromExecFifo(f); err != nil {
 		return err
 	}
-	return os.Remove(f.Name())
+	if err := os.Remove(f.Name()); !os.IsNotExist(err) {
+		return err
+	}
+	return nil
 }
 
 type openResult struct {
-- 
2.33.0

