runc/patch/0009-runc-ignore-exec.fifo-removing-not-exist-error.patch

29 lines
791 B
Diff
Raw Normal View History

2023-01-05 17:11:59 +08:00
From 4e44d5c41ff9d97fdae4e0951ef1d461e07e84ad Mon Sep 17 00:00:00 2001
2022-10-26 16:13:47 +08:00
From: zhongjiawei <zhongjiawei1@huawei.com>
2023-01-05 17:11:59 +08:00
Date: Thu, 5 Jan 2023 16:25:57 +0800
2022-10-26 16:13:47 +08:00
Subject: [PATCH] runc: ignore exec.fifo removing not exist error
---
2023-01-05 17:11:59 +08:00
libcontainer/container_linux.go | 5 ++++-
2022-10-26 16:13:47 +08:00
1 file changed, 4 insertions(+), 1 deletion(-)
2023-01-05 17:11:59 +08:00
diff --git a/libcontainer/container_linux.go b/libcontainer/container_linux.go
2022-10-26 16:13:47 +08:00
index 9df830d..6b68a0e 100644
2023-01-05 17:11:59 +08:00
--- a/libcontainer/container_linux.go
+++ b/libcontainer/container_linux.go
2022-10-26 16:13:47 +08:00
@@ -325,7 +325,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.30.0