1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
samba-mirror/source4/web_server
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
..
web_server.c source4 smdb: Add a post fork hook to the service API 2018-11-01 23:49:24 +01:00
web_server.h web_server: Make second argument to websrv_output const. 2012-12-05 14:56:43 +01:00
wscript_build PY3: use pyembed_libname for library names (otherwise missing deps) 2018-09-16 06:16:20 +02:00
wsgi.c s4/web_server: PY3: port to python3 2018-09-27 01:54:27 +02:00