openmoat 0.27.0

Policy checks for AI coding agents: decides allow, defer, review or deny for each tool call the hook of Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot CLI and seven more agents reports, configures Claude Code's, Codex's and Cursor's own OS sandboxes from the same policy, and keeps a local audit log.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Windows and other systems: no process group; the server itself is killed.

use std::process::{Child, Command};

/// The server's command as it is.
pub(in super::super) fn own(command: &mut Command) -> &mut Command {
    command
}

/// No signal to ask with: the server is killed.
pub(super) fn terminate(child: &mut Child) {
    let _ = child.kill();
}

/// Kill the server.
pub(super) fn kill(child: &mut Child) {
    let _ = child.kill();
}