[libc-commits] [libc] [libc] always clean up child process to avoid hanging ninja (PR #118049)

via libc-commits libc-commits at lists.llvm.org
Thu Nov 28 21:10:18 PST 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: Schrodinger ZHU Yifan (SchrodingerZhu)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/118049.diff


1 Files Affected:

- (modified) libc/test/src/sys/mman/linux/process_mrelease_test.cpp (+2) 


``````````diff
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);
   }
 }

``````````

</details>


https://github.com/llvm/llvm-project/pull/118049


More information about the libc-commits mailing list