diff options
author | Mattias Andrée <maandree@member.fsf.org> | 2015-12-25 17:15:03 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@member.fsf.org> | 2015-12-25 17:15:03 +0100 |
commit | d7dd2d885c3dc8711c04f564b06169bc1ccefe1d (patch) | |
tree | 22fcf13f1f920985f84bdad93a02060144f4323d /src/daemonise.h | |
parent | satd: command line (diff) | |
download | sat-d7dd2d885c3dc8711c04f564b06169bc1ccefe1d.tar.gz sat-d7dd2d885c3dc8711c04f564b06169bc1ccefe1d.tar.bz2 sat-d7dd2d885c3dc8711c04f564b06169bc1ccefe1d.tar.xz |
daemonise
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to '')
-rw-r--r-- | src/daemonise.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/daemonise.h b/src/daemonise.h index 72a2fda..33c0aec 100644 --- a/src/daemonise.h +++ b/src/daemonise.h @@ -179,3 +179,21 @@ */ int daemonise(const char* name, int flags); + +/** + * Remove the PID file created by `daemonise`. This shall + * always be called before exiting after calling `daemonise`, + * even if it failed. + * + * This is a slibc extension. + * + * @etymology (Un)link PID file created by `(daemonise)`! + * + * @return Zero on success, -1 on error. + * + * @throws Any error specified for unlink(3). + * + * @since Always. + */ +int undaemonise(void); + |