Skip to content

Commit cf478bf

Browse files
[libc] always clean up child process to avoid hanging ninja (#118049)
1 parent d02c167 commit cf478bf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ TEST(LlvmLibcProcessMReleaseTest, ErrorNotKilled) {
6060

6161
EXPECT_THAT(LIBC_NAMESPACE::process_mrelease(pidfd, 0), Fails(EINVAL));
6262

63+
LIBC_NAMESPACE::kill(child_pid, SIGKILL);
64+
6365
LIBC_NAMESPACE::close(pidfd);
6466
}
6567
}

0 commit comments

Comments
 (0)