chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 12:49:17 +08:00
commit 7243d5823b
2201 changed files with 257291 additions and 0 deletions
@@ -0,0 +1,18 @@
namespace MCPForUnity.Editor.Services.Server
{
/// <summary>
/// Interface for platform-specific process termination.
/// Provides methods to terminate processes gracefully or forcefully.
/// </summary>
public interface IProcessTerminator
{
/// <summary>
/// Terminates a process using platform-appropriate methods.
/// On Unix: Tries SIGTERM first with grace period, then SIGKILL.
/// On Windows: Tries taskkill, then taskkill /F.
/// </summary>
/// <param name="pid">The process ID to terminate</param>
/// <returns>True if the process was terminated successfully</returns>
bool Terminate(int pid);
}
}