Selenium-Remote-Driver
Selenium-Remote-Driver copied to clipboard
no lsof on OpenBSD
Something fairly similar can be done using fstat, though.
Questions remain:
- is it only OpenBSD ? I kind-of-think it might apply to NetBSD/FreeBSD/Dragonfly as well.
Depending on that, there might be some extra IS_ constants
Or just maybe, try to run either of lsof or fstat you can ? and parse the results differently.
Will probably be more sturdy on any Unix...
Anyway, here's the fstat code.
Looking forward, making it work better. Sorry to not have a full patch yet.
I can look into it further if you don't have time.
Forgive the tardy response.
Thanks for the starter patch, I'll look at incorporating something like it soon to get this all working on *bsd.
ok, so the approach seems to be use fstat instead of lsof.
I think I'll use dan's Unix::PID::get_pidof() instead
Hmm, there's no real lsof::PP though.
There is this however:
https://www.cpan.org/authors/id/J/JA/JAMSHAID/scripts/lsof-1.2.pl
Maybe I'll make a module out of that.
On Tue, Oct 20, 2020 at 09:21:46AM -0700, George S. Baugh wrote:
Hmm, there's no real lsof::PP though.
There is this however:
https://www.cpan.org/authors/id/J/JA/JAMSHAID/scripts/lsof-1.2.pl
Maybe I'll make a module out of that.
Err... OpenBSD doesn't have /proc... at all
there is no portable way to get that information. Why don't you just use fstat ?...