Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
It would be very useful to be able to change the process name for reference in tools like top. This is especially useful when a go executable starts additional processes of the same executable. This is a useful workaround for when the 16GB memory limit is reached. It would be ideal if a method: func (p *Process) SetName(name string) error could be exported from the os package and any platform specific code added to the syscall package such as: prctl.set_proctitle for Linux I believe OS X requires overwriting/exposing argv to achieve the same effect. There is an equivalent module for Python with lots of platform specific code: https://github.com/dvarrazzo/py-setproctitle Cheers, Donovan.
This issue was closed.