Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue 6080 - ns-slapd crash in referint_get_config
Bug description: Referential integrity plugin spawn a thread to run integrity check/update in a deferred way. It uses a log file to pipe changes to check. The name of the file, stored in the config, is read periodically. At shutdown, referint plugin close callback notifies the thread to stop and free the config. The problem is that the thread may check the config while it was notify to stop. Fix description: synchronize the plugin close function (referint_postop_close) and the batch thread (referint_thread_func). When the batch thread starts it set 'batch_thread_running' and reset it when it stops. The plugin close function notifes the batch thread to stop (via keeprunning==0) and then wait 'batch_thread_running' is reset relates: 389ds#6080 Reviewed by: Pierre Rogier (thanks !)
- Loading branch information