mirror of
https://github.com/troglobit/libite.git
synced 2026-10-30 12:40:38 +00:00
Update pidfile() description with hidden features
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
61fb7aeca2
commit
d45f2bad5b
1 file changed
+7
-3
@@ -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
|
http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man3/pidfile.3
|
||||||
|
|
||||||
**Note:** this version of `pidfile()` has been extended to handle it
|
**Note:** this version of `pidfile()` has been extended to handle it
|
||||||
being called multiple times, and also to export the path to the PID
|
being called multiple times, i.e. to not create multiple `atexit()`
|
||||||
file `__pidfile_name`, similar to `__progname`. See previous section
|
handlers, and also to export a few internal paths:
|
||||||
for details.
|
|
||||||
|
- `__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)`
|
- `reallocarray(ptr, nmemb, size)`
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user