diff options
author | Gary Lockyer <gary@catalyst.net.nz> | 2018-08-23 09:35:52 +1200 |
---|---|---|
committer | Gary Lockyer <gary@samba.org> | 2018-11-01 23:49:24 +0100 |
commit | 99aea42520fc10564dbba013c365adb3059febad (patch) | |
tree | f3b63d2d703983b23dc9b6aaddc764c105c10637 /simple-dc-steps.sh | |
parent | d6777a66c0dbd0c356059644b57070d4587d83ea (diff) | |
download | samba-99aea42520fc10564dbba013c365adb3059febad.tar.gz |
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>
Diffstat (limited to 'simple-dc-steps.sh')
0 files changed, 0 insertions, 0 deletions