[PATCH 3/3] Refactor atfork handlers

Florian Weimer fweimer@redhat.com
Wed Feb 7 15:13:00 GMT 2018


On 02/07/2018 02:09 PM, Adhemerval Zanella wrote:
> +  for (size_t i = 0; i < fork_handler_list_size (&fork_handlers); i++)
> +    if (fork_handler_list_at (&fork_handlers, i)->dso_handle == dso_handle)
> +      {
> +        fork_handler_list_remove (&fork_handlers, i);
> +        break;
> +      }

I think there can be multiple fork handlers for one dso_handle, and this 
loop only removes one of them.

Thanks,
Florian



More information about the Libc-alpha mailing list