!209 libuv loop退出时增加处理signal_pipefd[0]操作
Some checks failed
ci-sample / build (macos-latest) (push) Has been cancelled
ci-sample / build (ubuntu-latest) (push) Has been cancelled
ci-sample / build (windows-latest) (push) Has been cancelled
CI-unix / build-linux (push) Has been cancelled
CI-unix / build-android (push) Has been cancelled
CI-unix / build-macos (push) Has been cancelled
CI-unix / build-ios (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:aarch64-linux-gnu-gcc qemu:qemu-aarch64-static target:aarch64 (u64 slots) toolchain:gcc-aarch64-linux-gnu]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:aarch64-linux-gnu-gcc qemu:qemu-aarch64-static target:aarch64 toolchain:gcc-aarch64-linux-gnu]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:arm-linux-gnueabi-gcc qemu:qemu-arm-static target:arm (u64 slots) toolchain:gcc-arm-linux-gnueabi]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:arm-linux-gnueabi-gcc qemu:qemu-arm-static target:arm toolchain:gcc-arm-linux-gnueabi]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:arm-linux-gnueabihf-gcc qemu:qemu-arm-static target:armhf toolchain:gcc-arm-linux-gnueabihf]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:mips-linux-gnu-gcc qemu:qemu-mips-static target:mips toolchain:gcc-mips-linux-gnu]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:mips64-linux-gnuabi64-gcc qemu:qemu-mips64-static target:mips64 toolchain:gcc-mips64-linux-gnuabi64]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:mips64el-linux-gnuabi64-gcc qemu:qemu-mips64el-static target:mips64el toolchain:gcc-mips64el-linux-gnuabi64]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:mipsel-linux-gnu-gcc qemu:qemu-mipsel-static target:mipsel toolchain:gcc-mipsel-linux-gnu]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:powerpc-linux-gnu-gcc qemu:qemu-ppc-static target:ppc (u64 slots) toolchain:gcc-powerpc-linux-gnu]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:powerpc-linux-gnu-gcc qemu:qemu-ppc-static target:ppc toolchain:gcc-powerpc-linux-gnu]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:powerpc64-linux-gnu-gcc qemu:qemu-ppc64-static target:ppc64 (u64 slots) toolchain:gcc-powerpc64-linux-gnu]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:powerpc64-linux-gnu-gcc qemu:qemu-ppc64-static target:ppc64 toolchain:gcc-powerpc64-linux-gnu]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:powerpc64le-linux-gnu-gcc qemu:qemu-ppc64le-static target:ppc64le toolchain:gcc-powerpc64le-linux-gnu]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:riscv64-linux-gnu-gcc qemu:qemu-riscv64-static target:riscv64 toolchain:gcc-riscv64-linux-gnu]) (push) Has been cancelled
CI-unix / build-cross-qemu-${{ matrix.config.target }} (map[cc:s390x-linux-gnu-gcc qemu:qemu-s390x-static target:s390x toolchain:gcc-s390x-linux-gnu]) (push) Has been cancelled
CI-win / build-${{ join(matrix.config.*, '-') }} (map[arch:Win32 server:2019 toolchain:Visual Studio 16 2019]) (push) Has been cancelled
CI-win / build-${{ join(matrix.config.*, '-') }} (map[arch:Win32 server:2022 toolchain:Visual Studio 17 2022]) (push) Has been cancelled
CI-win / build-${{ join(matrix.config.*, '-') }} (map[arch:arm64 server:2022 toolchain:Visual Studio 17 2022]) (push) Has been cancelled
CI-win / build-${{ join(matrix.config.*, '-') }} (map[arch:x64 config:ASAN server:2022 toolchain:Visual Studio 17 2022]) (push) Has been cancelled
CI-win / build-${{ join(matrix.config.*, '-') }} (map[arch:x64 config:UBSAN server:2022 toolchain:Visual Studio 17 2022]) (push) Has been cancelled
CI-win / build-${{ join(matrix.config.*, '-') }} (map[arch:x64 server:2019 toolchain:Visual Studio 16 2019]) (push) Has been cancelled
CI-win / build-${{ join(matrix.config.*, '-') }} (map[arch:x64 server:2022 toolchain:Visual Studio 17 2022]) (push) Has been cancelled
CI-win / build-mingw-${{ matrix.config.arch }} (map[arch:i686 libgcc:dw2 server:2022]) (push) Has been cancelled
CI-win / build-mingw-${{ matrix.config.arch }} (map[arch:x86_64 libgcc:seh server:2022]) (push) Has been cancelled
Sanitizer checks / sanitizers-linux (push) Has been cancelled
Sanitizer checks / sanitizers-macos (push) Has been cancelled
Sanitizer checks / sanitizers-windows (push) Has been cancelled
CI-win / test-mingw-${{ matrix.config.arch }} (map[arch:i686 server:2022]) (push) Has been cancelled
CI-win / test-mingw-${{ matrix.config.arch }} (map[arch:x86_64 server:2022]) (push) Has been cancelled

Merge pull request !209 from liaoxingxing/ffrtSigPipefd
This commit is contained in:
openharmony_ci 2024-11-02 11:59:47 +00:00 committed by Gitee
commit e0a13855ca
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -21,7 +21,9 @@
#include "uv.h"
#include "internal.h"
#include "uv_log.h"
#ifdef USE_FFRT
#include "ffrt_inner.h"
#endif
#include <assert.h>
#include <errno.h>
#include <signal.h>
@ -341,6 +343,11 @@ void uv__signal_loop_cleanup(uv_loop_t* loop) {
}
if (loop->signal_pipefd[0] != -1) {
#ifdef USE_FFRT
if (ffrt_get_cur_task() != NULL) {
uv__epoll_ctl(loop->backend_fd, EPOLL_CTL_DEL, loop->signal_pipefd[0], NULL);
}
#endif
uv__close(loop->signal_pipefd[0]);
loop->signal_pipefd[0] = -1;
}