aboutsummaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
authorHoward Hellyer <hhellyer@uk.ibm.com>2017-01-12 04:50:17 -0500
committerSantiago Gimeno <santiago.gimeno@gmail.com>2017-01-26 12:50:49 +0100
commitd6427e4bebb540201f7fc04ae6270238936f5d4f (patch)
treed0cbeb218e2d318d86ade85d3eea48ce26095fe6 /docs/src
parentc5bb773bddc778baceb2621c89ac9b230b9b30e6 (diff)
downloadlibuv-d6427e4bebb540201f7fc04ae6270238936f5d4f.tar.gz
libuv-d6427e4bebb540201f7fc04ae6270238936f5d4f.zip
aix: enable uv_get/set_process_title
This patch enables querying and setting the process title on AIX. libuv takes ownership of the memory for argv and returns a deep copy of the array and its contents. It also enables the process_title test case. The process title can be changed on AIX but is handled differently to Linux/Mac. Commands like ps read the original argv array passed to the process instead of the memory at argv[0]. To change the process title we need to update argv[0] to point at a new string and set argv[1] to NULL (if it exists). This means the process title can be set to a string of any length. PR-URL: https://github.com/libuv/libuv/pull/1187 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/misc.rst6
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/src/misc.rst b/docs/src/misc.rst
index 95237f49..71934694 100644
--- a/docs/src/misc.rst
+++ b/docs/src/misc.rst
@@ -192,7 +192,11 @@ API
.. c:function:: int uv_set_process_title(const char* title)
- Sets the current process title.
+ Sets the current process title. On platforms with a fixed size buffer for the
+ process title the contents of `title` will be copied to the buffer and
+ truncated if larger than the available space. Other platforms will return
+ `UV_ENOMEM` if they cannot allocate enough space to duplicate the contents of
+ `title`.
.. c:function:: int uv_resident_set_memory(size_t* rss)