!44 [sync] PR-43: fix deadlock when subprocess exit
Merge pull request !44 from openeuler-sync-bot/sync-pr43-master-to-openEuler-22.03-LTS-Next
This commit is contained in:
commit
e54fbf1e86
25
0018-fix-deadlock-problem-when-subprocess-exit.patch
Normal file
25
0018-fix-deadlock-problem-when-subprocess-exit.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
From 4ad5ee6eafcdef8178adf1cea53ab8a617d3fd78 Mon Sep 17 00:00:00 2001
|
||||||
|
From: yangjiaqi <yangjiaqi16@huawei.com>
|
||||||
|
Date: Wed, 15 Dec 2021 17:19:01 +0800
|
||||||
|
Subject: [PATCH] fix deadlock problem when subprocess exit
|
||||||
|
|
||||||
|
---
|
||||||
|
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 d02f841..0f66c40 100644
|
||||||
|
--- a/src/proc_fuse.c
|
||||||
|
+++ b/src/proc_fuse.c
|
||||||
|
@@ -563,7 +563,7 @@ struct devinfo* container_dev_read(pid_t pid) {
|
||||||
|
fflush(stream);
|
||||||
|
child_out:
|
||||||
|
fclose(stream);
|
||||||
|
- exit(0);
|
||||||
|
+ _exit(EXIT_SUCCESS);
|
||||||
|
}
|
||||||
|
|
||||||
|
close(mypipe[1]);
|
||||||
|
--
|
||||||
|
2.32.0 (Apple Git-132)
|
||||||
|
|
||||||
@ -4,7 +4,7 @@
|
|||||||
#Basic Information
|
#Basic Information
|
||||||
Name: lxcfs
|
Name: lxcfs
|
||||||
Version: 4.0.11
|
Version: 4.0.11
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: FUSE filesystem for LXC
|
Summary: FUSE filesystem for LXC
|
||||||
License: LGPL 2.1+
|
License: LGPL 2.1+
|
||||||
URL: http://linuxcontainers.org
|
URL: http://linuxcontainers.org
|
||||||
@ -27,6 +27,7 @@ Patch9014: 0014-fix-proc-diskstats-show-in-container.patch
|
|||||||
Patch9015: 0015-lxcfs-adapt-4.18-kernel.patch
|
Patch9015: 0015-lxcfs-adapt-4.18-kernel.patch
|
||||||
Patch9016: 0016-remove-lxcfs-tools-dependency-for-common-use.patch
|
Patch9016: 0016-remove-lxcfs-tools-dependency-for-common-use.patch
|
||||||
Patch9017: 0017-proc_fuse-fix-wait-child-process-hang.patch
|
Patch9017: 0017-proc_fuse-fix-wait-child-process-hang.patch
|
||||||
|
Patch9018: 0018-fix-deadlock-problem-when-subprocess-exit.patch
|
||||||
|
|
||||||
#Dependency
|
#Dependency
|
||||||
BuildRequires: autoconf automake libtool help2man
|
BuildRequires: autoconf automake libtool help2man
|
||||||
@ -88,6 +89,9 @@ fi
|
|||||||
%{_unitdir}/*
|
%{_unitdir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Dec 17 2021 yangjiaqi <yangjiaqi16@huawei.com> - 4.0.11-2
|
||||||
|
- fix deadlock caused by subprocess calling lxcfs_exit
|
||||||
|
|
||||||
* Sat Nov 27 2021 yangjiaqi <yangjiaqi16@huawei.com> - 4.0.11-1
|
* Sat Nov 27 2021 yangjiaqi <yangjiaqi16@huawei.com> - 4.0.11-1
|
||||||
- update to 4.0.11
|
- update to 4.0.11
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user