Skip to content

Commit

Permalink
Merge pull request #633 from bytedance/feai-python-m
Browse files Browse the repository at this point in the history
feat python m flag inspect
  • Loading branch information
yoloyyh authored Jun 7, 2024
2 parents 03306f8 + 9467b5e commit 1e94f65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rasp/librasp/src/cpython.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ impl CPythonRuntime {
}
pub fn libpython_inspect(process_info: &ProcessInfo) -> Result<Option<String>> {
let maps = procfs::process::Process::new(process_info.pid)?.maps()?;
let regex_str = r"libpython(\d\.\d+)\.so";
let regex_str = r"libpython(\d\.\d+)[m]?\.so";
let regex = Regex::new(regex_str)?;
for map in maps.iter() {
if let procfs::process::MMapPath::Path(p) = map.pathname.clone() {
Expand Down

0 comments on commit 1e94f65

Please sign in to comment.