source4/smbd: refactor the process model for prefork
[metze/samba/wip.git] / source4 / dsdb / kcc / kcc_service.c
index 946a8fef3ecfe80c145d5ce590a5f7a77791323f..a5508aff1a58e4eb79e1c521d5202499b0a35dc8 100644 (file)
@@ -347,5 +347,9 @@ static void kccsrv_task_init(struct task_server *task)
 */
 NTSTATUS server_service_kcc_init(TALLOC_CTX *ctx)
 {
-       return register_server_service(ctx, "kcc", kccsrv_task_init);
+       struct service_details details = {
+               .inhibit_fork_on_accept = true,
+               .inhibit_pre_fork = true
+       };
+       return register_server_service(ctx, "kcc", kccsrv_task_init, &details);
 }