From 6f859f58afff10f708bf06d55d1cfab575875627 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 10 May 2010 13:47:42 +1000 Subject: s4:process_modals Add another process modal - 'onefork' This will fork off exactly one child to handle some task, ensuring that if it dies or changes global state, that this does not change everything. Andrew Bartlett --- source4/smbd/process_model.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source4/smbd/process_model.c') diff --git a/source4/smbd/process_model.c b/source4/smbd/process_model.c index e3ea4dbf39..d3f234eb41 100644 --- a/source4/smbd/process_model.c +++ b/source4/smbd/process_model.c @@ -86,6 +86,7 @@ _PUBLIC_ NTSTATUS process_model_init(struct loadparm_context *lp_ctx) extern NTSTATUS process_model_thread_init(void); extern NTSTATUS process_model_standard_init(void); extern NTSTATUS process_model_prefork_init(void); + extern NTSTATUS process_model_onefork_init(void); extern NTSTATUS process_model_single_init(void); init_module_fn static_init[] = { STATIC_process_model_MODULES }; init_module_fn *shared_init = load_samba_modules(NULL, lp_ctx, "process_model"); -- cgit