mirror of
https://github.com/troglobit/finit.git
synced 2026-10-15 10:29:35 +00:00
Export service timeout APIs, for pidfile plugin
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
837bca3947
commit
50f2cbf600
2 files changed
+5
-2
No files matched your search
+2
-2
@@ -90,7 +90,7 @@ static void service_timeout_cb(uev_t *w, void *arg, int events)
|
||||
* Returns:
|
||||
* POSIX OK(0) on success, non-zero on error.
|
||||
*/
|
||||
static int service_timeout_after(svc_t *svc, int timeout, void (*cb)(svc_t *svc))
|
||||
int service_timeout_after(svc_t *svc, int timeout, void (*cb)(svc_t *svc))
|
||||
{
|
||||
if (svc->timer_cb)
|
||||
return -EBUSY;
|
||||
@@ -108,7 +108,7 @@ static int service_timeout_after(svc_t *svc, int timeout, void (*cb)(svc_t *svc)
|
||||
* Returns:
|
||||
* POSIX OK(0) on success, non-zero on error.
|
||||
*/
|
||||
static int service_timeout_cancel(svc_t *svc)
|
||||
int service_timeout_cancel(svc_t *svc)
|
||||
{
|
||||
int err;
|
||||
|
||||
|
||||
@@ -35,6 +35,9 @@ void service_runtask_clean (void);
|
||||
void service_reload_dynamic (void);
|
||||
void service_update_rdeps (void);
|
||||
|
||||
int service_timeout_after (svc_t *svc, int timeout, void (*cb)(svc_t *svc));
|
||||
int service_timeout_cancel (svc_t *svc);
|
||||
|
||||
int service_step (svc_t *svc);
|
||||
void service_step_all (int types);
|
||||
void service_worker (void *unused);
|
||||
|
||||
Reference in new issue
Block a user