aboutsummaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
authorBartosz Sosnowski <bartosz@janeasystems.com>2017-11-30 12:41:09 +0100
committercjihrig <cjihrig@gmail.com>2017-11-30 20:11:21 -0500
commitd708df110a03332224bd9be1bbd23093d9cf9022 (patch)
treee4e62f139cccd873ab0af73a29b3165761481e1d /docs/src
parent49616e4e17bf3e9417992cf177e5bccc1a8cc891 (diff)
downloadlibuv-d708df110a03332224bd9be1bbd23093d9cf9022.tar.gz
libuv-d708df110a03332224bd9be1bbd23093d9cf9022.zip
unix,win: add uv_os_getpid()
Adds a multi platform way to get current process id. PR-URL: https://github.com/libuv/libuv/pull/1661 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/misc.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/src/misc.rst b/docs/src/misc.rst
index 2968d1ce..a653413e 100644
--- a/docs/src/misc.rst
+++ b/docs/src/misc.rst
@@ -227,6 +227,12 @@ API
On Windows not all fields are set, the unsupported fields are filled with zeroes.
See :c:type:`uv_rusage_t` for more details.
+.. c:function:: uv_pid_t uv_os_getpid(void)
+
+ Returns the current process ID.
+
+ .. versionadded:: 1.18.0
+
.. c:function:: uv_pid_t uv_os_getppid(void)
Returns the parent process ID.