summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
31f73cc)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*/
void kconsumerd_cleanup(void)
{
*/
void kconsumerd_cleanup(void)
{
- struct kconsumerd_fd *iter;
+ struct kconsumerd_fd *iter, *tmp;
/* remove the socket file */
unlink(kconsumerd_command_sock_path);
/* remove the socket file */
unlink(kconsumerd_command_sock_path);
* running (after joining on the threads), no need to protect
* list iteration with mutex.
*/
* running (after joining on the threads), no need to protect
* list iteration with mutex.
*/
- cds_list_for_each_entry(iter, &kconsumerd_data.fd_list.head, list) {
+ cds_list_for_each_entry_safe(iter, tmp, &kconsumerd_data.fd_list.head, list) {
kconsumerd_del_fd(iter);
}
}
kconsumerd_del_fd(iter);
}
}