From 2db8a86efd31bdab108769363c6a107289453bc1 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 23 Dec 2015 16:22:52 +0100 Subject: daemonise: user-private daemons MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- include/unistd.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/unistd.h') diff --git a/include/unistd.h b/include/unistd.h index 9b78fb1..4629e8e 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -1134,6 +1134,10 @@ int daemon(int, int) * you make the function call. The process can have become * partially deamonised. * + * If $XDG_RUNTIME_DIR is set and is not empty, its value + * should be used instead of /run for the runtime data-files + * directory, in which the PID file is stored. + * * @etymology (Daemonise) the process! * * @param name The name of the daemon. Use a hardcoded value, -- cgit v1.2.3-70-g09d2