Verified Commit e90fa3e3 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Do not try to open traceme on special PIDs

parent c51aec1a
Pipeline #9835 failed with stages
in 18 seconds
......@@ -52,6 +52,8 @@ pub fn init_state() -> &'static State {
}
}
pub fn is_traceme(pid: pid_t) -> bool {
// Skip special PIDs (<=0)
if pid <= 0 { return false; }
File::open(
&CString::new(format!("chan:ptrace-relibc/{}/traceme", pid)).unwrap(),
fcntl::O_PATH,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment