diff options
author | Noriko Hosoi <nhosoi@redhat.com> | 2006-12-14 23:16:54 +0000 |
---|---|---|
committer | Noriko Hosoi <nhosoi@redhat.com> | 2006-12-14 23:16:54 +0000 |
commit | b05e86a1004cccbe0573b3268b7c8a428323967e (patch) | |
tree | 425070b153f9d8da59c6fa6f82474c6655a9de92 /ldap/servers/slapd/main.c | |
parent | b956c18caff3237a9cdb562139184cdd9595a0c6 (diff) | |
download | ds-b05e86a1004cccbe0573b3268b7c8a428323967e.tar.gz ds-b05e86a1004cccbe0573b3268b7c8a428323967e.tar.xz ds-b05e86a1004cccbe0573b3268b7c8a428323967e.zip |
Resolves: #195305, #195307
Summary: [195305] make new_task() non-static
Changes: provide slapi_new_task and slapi_destroy_task as slapi APIs
Summary: [195307] task registration by plugins is wiped by task_init()
Changes: clean up old tasks before plugin_startall
Diffstat (limited to 'ldap/servers/slapd/main.c')
-rw-r--r-- | ldap/servers/slapd/main.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ldap/servers/slapd/main.c b/ldap/servers/slapd/main.c index 5a6aa111..e0f0203d 100644 --- a/ldap/servers/slapd/main.c +++ b/ldap/servers/slapd/main.c @@ -1056,6 +1056,13 @@ main( int argc, char **argv) LDAPDebug( LDAP_DEBUG_PLUGIN, "Password Modify plugin registered.\n", 0, 0, 0 ); + /* Cleanup old tasks that may still be in the DSE from a previous + session. Call before plugin_startall since cleanup needs to be + done before plugin_startall where user defined task plugins could + be started. + */ + task_cleanup(); + plugin_startall(argc, argv, 1 /* Start Backends */, 1 /* Start Globals */); if (housekeeping_start((time_t)0, NULL) == NULL) { exit (1); |