Open philkav opened 5 years ago
Is there documentation what format Solaris uses for its proc? And more importantly, why is it in a different format? Is it following a different spec?
Yes, the documentation for the format of proc(4) can be found here: https://docs.oracle.com/cd/E19455-01/816-3327/6m9k7qvih/index.html#psinfo
It appears that /proc/pid/psinfo would be the right place to get the tty and ppid.
I've seen an implementation of this in python here: https://github.com/oracle/solaris-ips/blob/master/src/modules/misc.py#L813
I'm not sure about the reasoning for the formatting/spec
Might be easier to get this info from 'ps'
I just ran into this too on SmartOS (Solaris...). I guess pipenv is a NOOP for me now because of this unless I do that hack above.
@anilj If Pipenv is your main concern Id suggest filing a PR to catch this error at the call site.
Hi, I've hit an issue on Solaris 11.4 when trying to invoke a shell using pipenv version 2018.11.26 (python3.7)
Similar to: _detectshell fails on IBM i / AIX #21
The messages I would see were like so:
The real issue here is that when shellingham tries to split the data it reads from /proc/PID/status, it fails, because the formatting is not as it expected.
In order to get around this, I modified posix/proc.py like so:
This solved the failures on my end.
Perhaps this is already fixed by 'Switch to parse 'ps wwl' for better compatibility #23'. I can test this if necessary.