diff options
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); + |