namespace MCPForUnity.Editor.Services.Server
{
///
/// Interface for platform-specific process termination.
/// Provides methods to terminate processes gracefully or forcefully.
///
public interface IProcessTerminator
{
///
/// Terminates a process using platform-appropriate methods.
/// On Unix: Tries SIGTERM first with grace period, then SIGKILL.
/// On Windows: Tries taskkill, then taskkill /F.
///
/// The process ID to terminate
/// True if the process was terminated successfully
bool Terminate(int pid);
}
}