summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_main_process.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2018-05-29 19:51:27 +0300
committerIgor Sysoev <igor@sysoev.ru>2018-05-29 19:51:27 +0300
commitd3356f7ad2c818c4dec4e4099f0424e5b32b55f1 (patch)
tree9a53483a54d98362f64bdab57b22002808134dfc /src/nxt_main_process.c
parent569a907dbb55f5590d7cda1684780a1cafb0563d (diff)
downloadunit-d3356f7ad2c818c4dec4e4099f0424e5b32b55f1.tar.gz
unit-d3356f7ad2c818c4dec4e4099f0424e5b32b55f1.tar.bz2
Added version number to main process title.
Diffstat (limited to '')
-rw-r--r--src/nxt_main_process.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nxt_main_process.c b/src/nxt_main_process.c
index f0a5903e..b5037635 100644
--- a/src/nxt_main_process.c
+++ b/src/nxt_main_process.c
@@ -381,7 +381,8 @@ nxt_main_process_title(nxt_task_t *task)
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++) {
p = nxt_sprintf(p, end, " %s", nxt_process_argv[i]);