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

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


Author: Schrodinger ZHU Yifan
Date: 2024-11-29T00:17:09-05:00
New Revision: cf478bf744fa2aacb634b151b7f6c9844f0d3851

URL: https://github.com/llvm/llvm-project/commit/cf478bf744fa2aacb634b151b7f6c9844f0d3851
DIFF: https://github.com/llvm/llvm-project/commit/cf478bf744fa2aacb634b151b7f6c9844f0d3851.diff

LOG: [libc] always clean up child process to avoid hanging ninja (#118049)

Added: 
    

Modified: 
    libc/test/src/sys/mman/linux/process_mrelease_test.cpp

Removed: 
    


################################################################################
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