source4 smbd prefork: restart on non zero exit code
[bbaumbach/samba-autobuild/.git] / source4 / smbd / process_model.h
index 2a226cef8cbd33ec5b2636d7ea8365d955982c28..2892dd43c04e75e8464a259b30b9f243c234fcea 100644 (file)
@@ -65,12 +65,17 @@ struct model_ops {
                         const struct service_details*,
                         const int);
 
-       /* function to terminate a connection or task */
-       void (*terminate)(struct tevent_context *,
-                         struct loadparm_context *lp_ctx,
-                         const char *reason,
-                         bool fatal,
-                         void *process_context);
+       /* function to terminate a task */
+       void (*terminate_task)(struct tevent_context *,
+                              struct loadparm_context *lp_ctx,
+                              const char *reason,
+                              bool fatal,
+                              void *process_context);
+       /* function to terminate a connection */
+       void (*terminate_connection)(struct tevent_context *,
+                                    struct loadparm_context *lp_ctx,
+                                    const char *reason,
+                                    void *process_context);
 
        /* function to set a title for the connection or task */
        void (*set_title)(struct tevent_context *, const char *title);