summaryrefslogtreecommitdiffstats
path: root/src/dpid.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2003-10-20 21:53:46 +0000
committerLennart Poettering <lennart@poettering.net>2003-10-20 21:53:46 +0000
commitce36dd0994ffa833ff0ce18e57a8776ff1103d8d (patch)
treeb0685edee04c84b0fd1a2593c1afffaa18da0448 /src/dpid.h
parentdf2e940cfd540ea46dd95da77ebacc35ae58423e (diff)
commit release 0.3
git-svn-id: file:///home/lennart/svn/public/libdaemon/trunk@41 153bfa13-eec0-0310-be40-b0cb6a0e1b4b
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