From 4ad5ee6eafcdef8178adf1cea53ab8a617d3fd78 Mon Sep 17 00:00:00 2001 From: yangjiaqi 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)