51.4. slapi_task_cancel()

Called to cancel a task. This function updates the state attributes in the task configuration entry to record that the task is canceled and returns a result code to the user. slapi_task_cancel() queues an event to destroy the task, which frees the task itself as well as any cleanup defined in a custom destructor callback function.
Syntax

void slapi_task_cancel(Slapi_Task *task, int rc)

Parameters

This function takes the following parameters:

task Points to the task operation which is being performed by the server.
rc Contains the result code to set for the task.