-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(Partial) Fix https://github.com/giampaolo/psutil/issues/694 #1084
Conversation
Hello and thanks for this. I'm glad there's a SunOS internals expert out there as SunOS it's the least tested platform in psutil. With that said, to ease up the review process and trackability I would prefer two separate PRs. Do you think that is possible? Also the coding style needs some adjustments. I'm gonna start pointing them out here and now but it's totally OK to make a PR first and then I'll review that in details.
...rather than:
...or other variants.
bad:
good:
|
Well... I see SunOS for.. 1.5 days? Something like that. Sorry about that! :)
You mean separate for env and cmdline?
Sure. I did that in vim in that SunOS box. Horrible experience. |
=)
Yes please
I can feel your pain. I've been doing the same for many years by emulating VMs with VirtualBox, setting up the VM (vim, git etc.) and switch between windows (horrible). Then I discovered Vagrant. With it I can start the VM, SSH into it and mount the local psutil directory into the VM. This way I can edit files locally (with my configured local editor) and run tests on the VM via SSH. Like this I switch between the (local) shell and the (local) editor windows, without using the mouse, and that's it.
|
I realized and forgot to say that SunOS is the only Vagrant platform I don't use because I can't compile psutil with it: it uses CC compiler by default, I installed GCC, but I can't manage to compile properly, so maybe what I said above is not worth the effort, at least in case of SunOS. |
Well, I'm using sshfs now, like in old good times :) |
2 separate PRs with as many commits as you want please. For simplicity you may want to push one, wait for review + merge and then start with the next one though. |
I'm not really sure about your exception processing, so this code needs review. Also I may forget about some memory cleanup, who knows.
This works for me for Intel 32/64 on SunOS 10, and behavior is pretty much like pargs. Also code adds support for environment block. I'm not sure about your API, so there is some kind of issue with exception handling there.