34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
From 65be5e53266717bd39902462e937ec2a7947b503 Mon Sep 17 00:00:00 2001
|
|
From: zhongtao <zhongtao17@huawei.com>
|
|
Date: Fri, 8 Dec 2023 11:03:10 +0000
|
|
Subject: [PATCH 171/181] !2299 remove close fd from stdout_cb and stderr_cb *
|
|
remove close fd from stdout_cb and stderr_cb
|
|
|
|
---
|
|
src/cmd/isulad-shim/process.c | 2 --
|
|
1 file changed, 2 deletions(-)
|
|
|
|
diff --git a/src/cmd/isulad-shim/process.c b/src/cmd/isulad-shim/process.c
|
|
index 9cd40089..d7127d0c 100644
|
|
--- a/src/cmd/isulad-shim/process.c
|
|
+++ b/src/cmd/isulad-shim/process.c
|
|
@@ -219,7 +219,6 @@ static int stdout_cb(int fd, uint32_t events, void *cbdata, struct epoll_descr *
|
|
r_count = read_nointr(fd, p->buf, DEFAULT_IO_COPY_BUF);
|
|
if (r_count <= 0 ) {
|
|
epoll_loop_del_handler(descr, fd);
|
|
- close(fd);
|
|
return EPOLL_LOOP_HANDLE_CONTINUE;
|
|
}
|
|
|
|
@@ -251,7 +250,6 @@ static int stderr_cb(int fd, uint32_t events, void *cbdata, struct epoll_descr *
|
|
r_count = read_nointr(fd, p->buf, DEFAULT_IO_COPY_BUF);
|
|
if (r_count <= 0 ) {
|
|
epoll_loop_del_handler(descr, fd);
|
|
- close(fd);
|
|
return EPOLL_LOOP_HANDLE_CONTINUE;
|
|
}
|
|
|
|
--
|
|
2.42.0
|
|
|