This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 3/3] Refactor atfork handlers


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]