Branch: refs/heads/smoke-me/tonyc/23226-atfork
  Home:   https://github.com/Perl/perl5
  Commit: 32be953ee6e0b0da443870c6533ad678eb9ef9a8
      
https://github.com/Perl/perl5/commit/32be953ee6e0b0da443870c6533ad678eb9ef9a8
  Author: Tony Cook <t...@develop-help.com>
  Date:   2025-07-09 (Wed, 09 Jul 2025)

  Changed paths:
    M embed.fnc
    M embed.h
    M ext/ExtUtils-Miniperl/lib/ExtUtils/Miniperl.pm
    M ext/XS-APItest/t/thread.t
    M miniperlmain.c
    M proto.h
    M util.c

  Log Message:
  -----------
  update PL_main_thread on fork()

85e97066 modified the perl signal handler to forward signals to the
main thread if it received a signal in a non-perl thread, which
required saving the id of the main perl thread.

Unfortunately I forgot to handle a possible change in the main thread
id on a fork, this fixes that by re-saving the new main thread id
immediately after a fork (via pthread_atfork())

On Linux it appears that the main thread id returned by pthread_seld()
is constant between processes, but this may not be true on other
platforms.

Discussed at:

https://github.com/Perl/perl5/issues/23326#issuecomment-3050481975



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications

Reply via email to