https://github.com/jasonmolenda created https://github.com/llvm/llvm-project/pull/201226
This codepath is only executed as an attempt to clean up during a failed launch, so the reversed arguments were rarely actually used. rdar://175507620 >From b19f9863027a428a00c5eac1dccaa35d228effa8 Mon Sep 17 00:00:00 2001 From: Jason Molenda <[email protected]> Date: Tue, 2 Jun 2026 15:44:38 -0700 Subject: [PATCH] [lldb][debugserver] Arguments to kill(2) are reversed This codepath is only executed as an attempt to clean up during a failed launch, so the reversed arguments were rarely actually used. rdar://175507620 --- lldb/tools/debugserver/source/DNB.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/tools/debugserver/source/DNB.cpp b/lldb/tools/debugserver/source/DNB.cpp index 4febb1797def7..1f13e70a12546 100644 --- a/lldb/tools/debugserver/source/DNB.cpp +++ b/lldb/tools/debugserver/source/DNB.cpp @@ -379,7 +379,7 @@ nub_process_t DNBProcessLaunch( // point and get reparented to someone else and never go away. DNBLog("Could not get task port for process, sending SIGKILL and " "exiting."); - kill(SIGKILL, pid); + kill(pid, SIGKILL); if (err_str && err_len > 0) { if (launch_err.AsString()) { _______________________________________________ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
