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

changing the process name works only partially in Linux #3037

Closed
mmomtchev opened this issue Nov 5, 2020 · 1 comment
Closed

changing the process name works only partially in Linux #3037

mmomtchev opened this issue Nov 5, 2020 · 1 comment

Comments

@mmomtchev
Copy link
Contributor

There are two "process titles" in Linux

  • one is the so-called command line that you see when you do ps uaxw, it comes from /proc/<pid>/cmdline and this one is still modified by process.title
  • the other one is the thread name that you see when you do ps -p <pid>, that one comes from /proc/<pid>/comm and it was broken by libuv 1.35.0 that was added in Node 12.17

#3019
nodejs/node#35503

@silverwind
Copy link

It's also wrong in /proc/pid/status, but I guess that may be a pointer to /proc/pid/comm.

$ cat /proc/28032/cmdline
myname
$ cat /proc/28032/comm
node
$ cat /proc/28032/status | head -1
Name: node

Some more info on this in https://stackoverflow.com/a/14176059/808699

santigimeno pushed a commit to santigimeno/libuv that referenced this issue Dec 3, 2020
The call to `uv__set_process_title()` had been accidentally removed.

Fixes: libuv#3037
PR-URL: libuv#3019
Refs: nodejs/node#35503
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
JeffroMF pushed a commit to JeffroMF/libuv that referenced this issue May 16, 2022
The call to `uv__set_process_title()` had been accidentally removed.

Fixes: libuv#3037
PR-URL: libuv#3019
Refs: nodejs/node#35503
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants