Where does netstat get the process name?
Posted
by
tjameson
on Super User
See other posts from Super User
or by tjameson
Published on 2011-06-25T04:26:50Z
Indexed on
2011/06/25
8:25 UTC
Read the original article
Hit count: 265
I am developing a node application and there is an option to set the process title (process name). This only sets it in some tools (like ps and top), but not in htop
or netstat
.
I found this article that explained how most applications do it, but it doesn't change in netstat.
That lead me to wonder where those programs are getting the process name. Would they be getting it from /proc/##/cmdline
? (## being the PID of the process)
I figure messing with things in /proc
is a bad idea (and probably not possible), so if this is where those programs are getting it, is there a way to change it?
© Super User or respective owner