Added version number to main process title.
This commit is contained in:
@@ -381,7 +381,8 @@ nxt_main_process_title(nxt_task_t *task)
|
|||||||
|
|
||||||
end = title + sizeof(title) - 1;
|
end = title + sizeof(title) - 1;
|
||||||
|
|
||||||
p = nxt_sprintf(title, end, "unit: main [%s", nxt_process_argv[0]);
|
p = nxt_sprintf(title, end, "unit: main v" NXT_VERSION " [%s",
|
||||||
|
nxt_process_argv[0]);
|
||||||
|
|
||||||
for (i = 1; nxt_process_argv[i] != NULL; i++) {
|
for (i = 1; nxt_process_argv[i] != NULL; i++) {
|
||||||
p = nxt_sprintf(p, end, " %s", nxt_process_argv[i]);
|
p = nxt_sprintf(p, end, " %s", nxt_process_argv[i]);
|
||||||
|
|||||||
Reference in New Issue
Block a user