2021-11-27 15:55:20 +08:00
|
|
|
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
|
2021-05-27 10:37:20 +08:00
|
|
|
|
|
|
|
|
---
|
|
|
|
|
src/proc_fuse.c | 2 +-
|
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
|
|
|
|
diff --git a/src/proc_fuse.c b/src/proc_fuse.c
|
2021-11-27 15:55:20 +08:00
|
|
|
index a72d6a2..d02f841 100644
|
2021-05-27 10:37:20 +08:00
|
|
|
--- a/src/proc_fuse.c
|
|
|
|
|
+++ b/src/proc_fuse.c
|
2021-11-27 15:55:20 +08:00
|
|
|
@@ -561,11 +561,11 @@ struct devinfo* container_dev_read(pid_t pid) {
|
2021-05-27 10:37:20 +08:00
|
|
|
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
|
|
|
|
|
|