Skip to content
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

Get current working directory on openbsd #1648

Closed
mikygee opened this issue May 13, 2024 · 3 comments · Fixed by #1649
Closed

Get current working directory on openbsd #1648

mikygee opened this issue May 13, 2024 · 3 comments · Fixed by #1649

Comments

@mikygee
Copy link

mikygee commented May 13, 2024

Hello,

I opened a request on Stork another opensource project and the developper tells me this
"Stork uses the shirou/gopsutil library to read the process details. Unfortunately, it doesn't fully support OpenBSD."

The initial problem is described here
https://gitlab.isc.org/isc-projects/stork/-/issues/1382#note_458694

The stork developper points line 70 here

func (p *Process) CwdWithContext(ctx context.Context) (string, error) {

Actually, Openbsd doesn't support cwd, it supports pwd.

Thank you

@mikygee
Copy link
Author

mikygee commented May 16, 2024

Hello,

Have you been able to test the solution on openbsd ?

I have modified the files on my system locally but I don't get it working.
But I'm not so familiar with Go, so it might be me.

Thank you for this push.

@shirou
Copy link
Owner

shirou commented May 17, 2024

Your question is regarding PR #1649, right? As I mentioned in that PR, it worked at least in my environment (OpenBSD 7.5 on VirtualBox).

@mikygee
Copy link
Author

mikygee commented May 17, 2024

Hello,
Thank you very much for your feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants