From d45f2bad5ba686ac011c0e4c96ea2f5dfc20eacc Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Mon, 6 Jun 2016 12:35:01 +0200 Subject: [PATCH] Update pidfile() description with hidden features Signed-off-by: Joachim Nilsson --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3b3b8e6..77887a5 100644 --- a/README.md +++ b/README.md @@ -316,9 +316,13 @@ The following are popular functions and highly useful macros from the http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man3/pidfile.3 **Note:** this version of `pidfile()` has been extended to handle it - being called multiple times, and also to export the path to the PID - file `__pidfile_name`, similar to `__progname`. See previous section - for details. + being called multiple times, i.e. to not create multiple `atexit()` + handlers, and also to export a few internal paths: + + - `__pidfile_path`: prefix path, default `_PATH_VARRUN`. Notice the + trailing slash requirement if you want to override it! + - `__pidfile_name`: full path to PID file , similar to `__progname`. + See previous section for details. - `reallocarray(ptr, nmemb, size)`