Skip to content

Commit 4e92977

Browse files
committed
rust: remove parent pid from execution report
1 parent 3785cd6 commit 4e92977

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

rust/intercept/src/bin/wrapper.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ fn report_execution(path_buf: &PathBuf) {
6060
// Report the execution
6161
let execution = intercept::Event::Started {
6262
pid: intercept::ProcessId(std::process::id() as u32),
63-
ppid: intercept::ProcessId(std::os::unix::process::parent_id() as u32), // FIXME: This is Unix specific
6463
execution: intercept::Execution {
6564
executable: path_buf.clone(),
6665
arguments: std::env::args().collect(),

rust/intercept/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ pub struct Execution {
5555
pub enum Event {
5656
Started {
5757
pid: ProcessId,
58-
ppid: ProcessId,
5958
execution: Execution,
6059
},
6160
Terminated {

rust/intercept/tests/test.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ mod test {
8282
timestamp: 0,
8383
event: Event::Started {
8484
pid: ProcessId(1),
85-
ppid: ProcessId(0),
8685
execution: Execution {
8786
executable: PathBuf::from("/usr/bin/ls"),
8887
arguments: vec!["ls".to_string(), "-l".to_string()],

0 commit comments

Comments
 (0)