Branch: refs/heads/smoke-me/khw-watchdoc
  Home:   https://github.com/Perl/perl5
  Commit: 5aacc409ae7e4a524bbd61c9b17e72d1f7fdacb1
      
https://github.com/Perl/perl5/commit/5aacc409ae7e4a524bbd61c9b17e72d1f7fdacb1
  Author: Karl Williamson <k...@cpan.org>
  Date:   2022-10-24 (Mon, 24 Oct 2022)

  Changed paths:
    M t/test.pl

  Log Message:
  -----------
  t/test.pl: Fix threads signalling watchdog cancellation

Commit 4712a4c94e5974bba8ef97d68aadf2b99c0b4ff4 added the ability to
cancel a watchdog timer.  Unfortunately it doesn't work properly when
the timer method was using the thread signalling cancellation method.
This problem only shows up on slow systems under load, so the flaw
wasn't immediately discovered.  That commit lowered the incidence level
significantly.

This commit solves the problem by having the child thread detach itself,
after it sets up the needed code to handle a signal from the parent.
The parent thread waits for the detach to happen, and proceeds.  Not
until then would it be safe to signal the child.


  Commit: 0a27c1e267062fe41878542b902d579fa43cdaa7
      
https://github.com/Perl/perl5/commit/0a27c1e267062fe41878542b902d579fa43cdaa7
  Author: Karl Williamson <k...@cpan.org>
  Date:   2022-10-24 (Mon, 24 Oct 2022)

  Changed paths:
    M t/test.pl

  Log Message:
  -----------
  yield


Compare: https://github.com/Perl/perl5/compare/5cf34f214b4a...0a27c1e26706

Reply via email to