From 723659935f6d1fcee936409dfd09557a72e52af0 Mon Sep 17 00:00:00 2001 From: zhongtao Date: Thu, 23 May 2024 01:09:41 +1400 Subject: [PATCH 213/213] change fork process exit mode --- src/utils/tar/util_archive.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/utils/tar/util_archive.c b/src/utils/tar/util_archive.c index 31dea193..89c33f09 100644 --- a/src/utils/tar/util_archive.c +++ b/src/utils/tar/util_archive.c @@ -894,9 +894,9 @@ int archive_unpack(const struct io_read_wrapper *content, const char *dstdir, co child_out: if (ret != 0) { - exit(EXIT_FAILURE); + _exit(EXIT_FAILURE); } - exit(EXIT_SUCCESS); + _exit(EXIT_SUCCESS); } close(pipe_stderr[1]); pipe_stderr[1] = -1; @@ -1339,9 +1339,9 @@ int archive_chroot_tar(const char *path, const char *file, const char *root_dir, child_out: if (ret != 0) { - exit(EXIT_FAILURE); + _exit(EXIT_FAILURE); } else { - exit(EXIT_SUCCESS); + _exit(EXIT_SUCCESS); } } close(pipe_for_read[1]); @@ -1574,9 +1574,9 @@ int archive_chroot_untar_stream(const struct io_read_wrapper *context, const cha child_out: if (ret != 0) { - exit(EXIT_FAILURE); + _exit(EXIT_FAILURE); } - exit(EXIT_SUCCESS); + _exit(EXIT_SUCCESS); } close(pipe_stderr[1]); @@ -1724,9 +1724,9 @@ child_out: free(tar_base_name); if (ret != 0) { - exit(EXIT_FAILURE); + _exit(EXIT_FAILURE); } else { - exit(EXIT_SUCCESS); + _exit(EXIT_SUCCESS); } } -- 2.25.1