Add pidfile_poll() from Finit, waits max 5 sec for pidfile.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2015-07-09 03:19:56 +02:00
1 parent c2d0ed0d12
commit e731d83881
2 files changed
+45 -6

No files matched your search

+2 -1
View File
@@ -53,7 +53,8 @@ int rsync (char *src, char *dst, int delete, int (*filter) (const char
int pidfile (const char *basename);
int pidfile_signal(const char *pidfile, int signal);
int pidfile_read (const char *pidfile);
pid_t pidfile_read (const char *pidfile);
pid_t pidfile_poll (const char *pidfile);
#ifndef strlcpy
size_t strlcpy (char *dst, const char *src, size_t siz);