Skip to content

Instantly share code, notes, and snippets.

@jperkin
Created October 30, 2025 10:16
Show Gist options
  • Select an option

  • Save jperkin/6f4350f9aec78cdca46096b6581e9cae to your computer and use it in GitHub Desktop.

Select an option

Save jperkin/6f4350f9aec78cdca46096b6581e9cae to your computer and use it in GitHub Desktop.
diff --git a/codex-rs/process-hardening/Cargo.toml b/codex-rs/process-hardening/Cargo.toml
index 7294b6e2..54e93c82 100644
--- a/codex-rs/process-hardening/Cargo.toml
+++ b/codex-rs/process-hardening/Cargo.toml
@@ -19,3 +19,6 @@ libc = { workspace = true }
[target.'cfg(target_os = "macos")'.dependencies]
libc = { workspace = true }
+
+[target.'cfg(target_os = "illumos")'.dependencies]
+libc = { workspace = true }
diff --git a/codex-rs/process-hardening/src/lib.rs b/codex-rs/process-hardening/src/lib.rs
index a787b409..cb2e9961 100644
--- a/codex-rs/process-hardening/src/lib.rs
+++ b/codex-rs/process-hardening/src/lib.rs
@@ -20,7 +20,7 @@ const PRCTL_FAILED_EXIT_CODE: i32 = 5;
#[cfg(target_os = "macos")]
const PTRACE_DENY_ATTACH_FAILED_EXIT_CODE: i32 = 6;
-#[cfg(any(target_os = "linux", target_os = "android", target_os = "macos"))]
+#[cfg(any(target_os = "linux", target_os = "android", target_os = "macos", target_os = "illumos"))]
const SET_RLIMIT_CORE_FAILED_EXIT_CODE: i32 = 7;
#[cfg(any(target_os = "linux", target_os = "android"))]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment