We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 478bf7c commit 0826a79Copy full SHA for 0826a79
1 file changed
crates/sandchest-agent/src/snapshot.rs
@@ -118,6 +118,13 @@ fn kill_orphaned_processes() {
118
#[cfg(target_os = "linux")]
119
{
120
let my_pid = std::process::id();
121
+
122
+ // Only kill orphans when running as PID 1 (inside a Firecracker VM).
123
+ // In tests or on CI runners, this would kill unrelated processes.
124
+ if my_pid != 1 {
125
+ return;
126
+ }
127
128
let mut killed = 0u32;
129
130
if let Ok(entries) = std::fs::read_dir("/proc") {
0 commit comments