Skip to content

Commit

Permalink
linux,macos: fix uv_set_process_title regression
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mmomtchev authored and JeffroMF committed May 16, 2022
1 parent 42d2fea commit 9d22cea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/unix/proctitle.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ int uv_set_process_title(const char* title) {
memcpy(pt->str, title, len);
memset(pt->str + len, '\0', pt->cap - len);
pt->len = len;
uv__set_process_title(pt->str);

uv_mutex_unlock(&process_title_mutex);

Expand Down

0 comments on commit 9d22cea

Please sign in to comment.