From c38fcbf3df0131caebec0ce0414fc409b63e9d93 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Tue, 21 Oct 2008 13:57:35 -0400 Subject: Make return the pid when new process are started. Monitor each service and restart it conditionally if it fails. These monitoring is extremely simple at this moment and just uses waitpid() to check if the client is alive, there is no active probing, that will require dbus. Make nsssrv.c read the sss pipe config option for the config db. --- server/process.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/process.h') diff --git a/server/process.h b/server/process.h index e5eeb5b..be22a56 100644 --- a/server/process.h +++ b/server/process.h @@ -4,7 +4,8 @@ int process_new_task(struct event_context *ev, const char *service_name, void (*new_task)(struct event_context *, void *), - void *private); + void *private, + pid_t *rpid); void process_set_title(struct event_context *ev, const char *title); void process_terminate(struct event_context *ev, const char *reason); -- cgit