lxcfs/0017-proc_fuse-fix-wait-child-process-hang.patch
vegbir 6ad912e044 update to 4.0.11
(cherry picked from commit 333138af7dd63430c46198dcb24abdcf5cc43b98)
2021-12-17 10:03:03 +08:00

30 lines
735 B
Diff

From 798bb221b5862418bfb965dc93ce785c743919ff Mon Sep 17 00:00:00 2001
From: yangjiaqi <yangjiaqi16@huawei.com>
Date: Thu, 25 Nov 2021 20:30:09 +0800
Subject: [PATCH 17/17] proc_fuse-fix-wait-child-process-hang
---
src/proc_fuse.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/proc_fuse.c b/src/proc_fuse.c
index a72d6a2..d02f841 100644
--- a/src/proc_fuse.c
+++ b/src/proc_fuse.c
@@ -561,11 +561,11 @@ struct devinfo* container_dev_read(pid_t pid) {
dev_num = dev_stat.st_dev & (~0xf);
fprintf(stream, "sda %d end 0 ", dev_num);
fflush(stream);
+child_out:
fclose(stream);
exit(0);
}
-child_out:
close(mypipe[1]);
stream = fdopen(mypipe[0], "r");
if (stream == NULL) {
--
2.27.0