diff options
author | etoledom <etoledom@icloud.com> | 2019-11-18 17:37:56 +0100 |
---|---|---|
committer | Aram Drevekenin <aram@poor.dev> | 2019-11-18 17:37:56 +0100 |
commit | 81e95f74f5ac10c60f12b33880d3fe65a1eac549 (patch) | |
tree | 831fad07adfbfa25238e2ba0ba5d24aa67e151a0 /src/os/mod.rs | |
parent | b4b3eace371cf802f261e7b5294365bb9bec63f0 (diff) |
refactor(macos): handle lsof in macos in a different module
* Refactor lsof connections as iterator
* Fix build issues and warnings
* Fix iterator to not finish on first wrong line
* Remove println
* Fix overflow.
Creating the regex instance on every iteration is too bad performant
* Adding connection regex as static
* Small syntax improvement
Diffstat (limited to 'src/os/mod.rs')
-rw-r--r-- | src/os/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/os/mod.rs b/src/os/mod.rs index 0a391f5..f490ae6 100644 --- a/src/os/mod.rs +++ b/src/os/mod.rs @@ -8,4 +8,6 @@ pub use linux::*; mod macos; #[cfg(target_os = "macos")] -pub use macos::*;
\ No newline at end of file +pub use macos::*; + +mod lsof_utils; |