Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

not truncate process name on Mac#7

Open
yeonsh wants to merge 2 commits intomitchellh:masterfrom
yeonsh:master
Open

not truncate process name on Mac#7
yeonsh wants to merge 2 commits intomitchellh:masterfrom
yeonsh:master

Conversation

@yeonsh
Copy link

@yeonsh yeonsh commented Dec 9, 2015

process_darwin.h changed to use proc_listpids, proc_pidinfo and proc_pidpath.

@gabriel
Copy link

gabriel commented May 2, 2016

@mitchellh would be great to merge this?

An alternative I was using previously, was parsing ps ax -o pid,comm which lists the full executable path name, but am trying to avoid that.

@gabriel
Copy link

gabriel commented May 14, 2016

In this fork, https://github.com/keybase/go-ps, I added a Path() method to Process which returns the full path to executable.

Supported on windows and darwin. (Uses this patch for darwin.)

daftaupe pushed a commit to daftaupe/go-ps that referenced this pull request Jan 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants