1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/source4/smbd
Gary Lockyer 99aea42520 source4 smdb: Add a post fork hook to the service API
Add a post fork hook to the service API this will be called:

 - standard process model
   immediately after the task_init.

- single process model
  immediately after the task_init

- prefork process model, inhibit_pre_fork = true
  immediately after the task_init

- prefork process model, inhibit_pre_fork = false
  after each service worker has forked. It is not run on the service
  master process.

The post fork hook is not called in the standard model if a new process
is forked on a new connection. It is instead called immediately after
the task_init.

The task_init hook has been changed to return an error code. This ensures
the post_fork code is only run if the task_init code completed successfully.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
2018-11-01 23:49:24 +01:00
..
process_model.c source4/smbd: replace DEBUG( with DBG_ 2017-10-19 05:33:10 +02:00
process_model.h source4 smdb: Add a post fork hook to the service API 2018-11-01 23:49:24 +01:00
process_prefork.c source4 smdb: Add a post fork hook to the service API 2018-11-01 23:49:24 +01:00
process_single.c source4 smdb: Add a post fork hook to the service API 2018-11-01 23:49:24 +01:00
process_standard.c source4 smdb: Add a post fork hook to the service API 2018-11-01 23:49:24 +01:00
server.c samba: read backup date field on init and fail if present 2018-06-28 03:34:26 +02:00
service_named_pipe.c source4/smbd: replace DEBUG( with DBG_ 2017-10-19 05:33:10 +02:00
service_stream.c libsocket: Add "mem_ctx" to socket_create() 2018-02-27 09:14:17 +01:00
service_stream.h source4/smbd: refactor the process model for prefork 2017-10-19 05:33:09 +02:00
service_task.c source4 smdb: Add a post fork hook to the service API 2018-11-01 23:49:24 +01:00
service_task.h source4/smbd: refactor the process model for prefork 2017-10-19 05:33:09 +02:00
service.c source4 smdb: Add a post fork hook to the service API 2018-11-01 23:49:24 +01:00
service.h source4 smdb: Add a post fork hook to the service API 2018-11-01 23:49:24 +01:00
wscript_build source4/smbd: add a prefork process model. 2017-10-19 05:33:10 +02:00