summaryrefslogtreecommitdiffstats
path: root/src/dpid.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/dpid.h')
-rw-r--r--src/dpid.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/dpid.h b/src/dpid.h
index 8dde464..9812ad9 100644
--- a/src/dpid.h
+++ b/src/dpid.h
@@ -70,4 +70,18 @@ pid_t daemon_pid_file_is_running(void);
*/
int daemon_pid_file_kill(int s);
+/** If this variable is defined to 1 iff daemon_pid_file_kill_wait() is supported.*/
+#define DAEMON_PID_FILE_KILL_WAIT_AVAILABLE 1
+
+/** Similar to daemon_pid_file_kill() but waits until the process
+ * died. This functions is new in libdaemon 0.3. The macro
+ * DAEMON_PID_FILE_KILL_WAIT_AVAILABLE is defined iff libdaemon
+ * supports this function.
+ *
+ * @param s The signal to send
+ * @param m Seconds to wait at maximum
+ * @return zero on success, nonzero on failure (timeout condition is considered a failure)
+ */
+int daemon_pid_file_kill_wait(int s, int m);
+
#endif