[libc-commits] [libc] [libc] always clean up child process to avoid hanging ninja (PR #118049)
Schrodinger ZHU Yifan via libc-commits
libc-commits at lists.llvm.org
Thu Nov 28 21:09:40 PST 2024
https://github.com/SchrodingerZhu created https://github.com/llvm/llvm-project/pull/118049
None
>From a117a6db13279f0d271858ae8ab6a439f30b9757 Mon Sep 17 00:00:00 2001
From: Schrodinger ZHU Yifan <i at zhuyi.fan>
Date: Fri, 29 Nov 2024 00:09:14 -0500
Subject: [PATCH] [libc] always clean up child process to avoid hanging ninja
---
libc/test/src/sys/mman/linux/process_mrelease_test.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libc/test/src/sys/mman/linux/process_mrelease_test.cpp b/libc/test/src/sys/mman/linux/process_mrelease_test.cpp
index 71cde7a85a6711..865056c05f8dbc 100644
--- a/libc/test/src/sys/mman/linux/process_mrelease_test.cpp
+++ b/libc/test/src/sys/mman/linux/process_mrelease_test.cpp
@@ -60,6 +60,8 @@ TEST(LlvmLibcProcessMReleaseTest, ErrorNotKilled) {
EXPECT_THAT(LIBC_NAMESPACE::process_mrelease(pidfd, 0), Fails(EINVAL));
+ LIBC_NAMESPACE::kill(child_pid, SIGKILL);
+
LIBC_NAMESPACE::close(pidfd);
}
}
More information about the libc-commits
mailing list