From bd8ffcf67be8fdbe14bc49a65a8eafe904119d88 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Fri, 3 Jan 2014 12:10:36 -0500 Subject: Block parent process until child is initialized. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This way the init system will not proceed starting dependencies until gssproxy is actually ready to serve requests. In particular this is used to make sure the nfsd proc file has been touched before the nfsd server is started. Resolves: https://fedorahosted.org/gss-proxy/ticket/114 Signed-off-by: Simo Sorce Reviewed-by: Günther Deschner --- proxy/src/gp_proxy.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'proxy/src/gp_proxy.h') diff --git a/proxy/src/gp_proxy.h b/proxy/src/gp_proxy.h index 733fec5..79bebb8 100644 --- a/proxy/src/gp_proxy.h +++ b/proxy/src/gp_proxy.h @@ -106,7 +106,8 @@ struct gp_creds_handle *gp_service_get_creds_handle(struct gp_service *svc); void free_config(struct gp_config **config); /* from gp_init.c */ -void init_server(bool daemonize); +void init_server(bool daemonize, int *wait_fd); +void init_done(int wait_fd); void fini_server(void); verto_ctx *init_event_loop(void); void init_proc_nfsd(struct gp_config *cfg); -- cgit