We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
-d
1 parent 701333c commit 8edbe40Copy full SHA for 8edbe40
src/uu/ps/src/collector.rs
@@ -85,9 +85,14 @@ pub(crate) fn session_collector(
85
let tty = |proc: &Rc<RefCell<ProcessInformation>>| proc.borrow_mut().tty();
86
87
// flag `-d`
88
- // TODO: Implementation this collection, guessing it pid=sid
89
if matches.get_flag("d") {
90
- proc_snapshot.iter().for_each(|_| {});
+ for proc_info in proc_snapshot {
+ let pid = proc_info.borrow().pid;
91
+
92
+ if getsid(pid as i32) != Some(pid as i32) {
93
+ result.push(proc_info.clone());
94
+ }
95
96
}
97
98
// flag `-a`
0 commit comments