Branch: refs/heads/blead
Home: https://github.com/Perl/perl5
Commit: 318cb221480438ceaad162291323f2aab748056d
https://github.com/Perl/perl5/commit/318cb221480438ceaad162291323f2aab748056d
Author: Karl Williamson <[email protected]>
Date: 2025-10-07 (Tue, 07 Oct 2025)
Changed paths:
M t/test.pl
Log Message:
-----------
test.pl: Clarify some comments, ternary, white space
Parenthesize the ternary conditional for clarity
Change some indentation, mostly in preparation for later commits
Commit: ac78c4bb6c562b54025fb01507a7d7df26812d3d
https://github.com/Perl/perl5/commit/ac78c4bb6c562b54025fb01507a7d7df26812d3d
Author: Karl Williamson <[email protected]>
Date: 2025-10-07 (Tue, 07 Oct 2025)
Changed paths:
M t/test.pl
Log Message:
-----------
test.pl: Don't use watchdog thread unless safe signals
In the thread documentation, I noticed that unsafe signals preclude
killing threads with a signal. But this is the normal method for
clearing a watchdog timer under threads. I doubt that people are
compiling with PERL_OLD_SIGNALS these days, so I didn't check for that,
but it's easy enough to check for the environment variable that does the
same thing at runtime.
Commit: e19d1bb2f33bb724f70773e7b37544866da4e960
https://github.com/Perl/perl5/commit/e19d1bb2f33bb724f70773e7b37544866da4e960
Author: Karl Williamson <[email protected]>
Date: 2025-10-07 (Tue, 07 Oct 2025)
Changed paths:
M t/test.pl
Log Message:
-----------
test.pl: Try alarm if can't start watchdog on Win/VMS
Prior to this commit, the code gave up immediately if it tried
unsuccessfully to use a watchdog thread. But the alarm method is still
available. Drop down to try it.
Commit: abdf59c559ec313a0f067a61c531be33e7f66e85
https://github.com/Perl/perl5/commit/abdf59c559ec313a0f067a61c531be33e7f66e85
Author: Karl Williamson <[email protected]>
Date: 2025-10-07 (Tue, 07 Oct 2025)
Changed paths:
M t/test.pl
Log Message:
-----------
test.pl: Change variable name
The next commit changes things, so that some people may find that after
that, the current name would be misleading or confusing.
Commit: c240d36c554927c92a6ef575c2c406e74764b6b3
https://github.com/Perl/perl5/commit/c240d36c554927c92a6ef575c2c406e74764b6b3
Author: Karl Williamson <[email protected]>
Date: 2025-10-07 (Tue, 07 Oct 2025)
Changed paths:
M t/test.pl
Log Message:
-----------
test.pl: Don't assume existing watchdog uses alarm()
The fallback method of setting a watchdog timer is to use alarm().
Prior to this commit, the code presumed that if it wasn't one of the
other possibilities, it must be this one. This is a valid assumption
currently, but future commits will change that. Prepare for them with
this commit.
Commit: dcdb676b23768ea9f6b1b0dba14b8b88dc6b7868
https://github.com/Perl/perl5/commit/dcdb676b23768ea9f6b1b0dba14b8b88dc6b7868
Author: Karl Williamson <[email protected]>
Date: 2025-10-07 (Tue, 07 Oct 2025)
Changed paths:
M t/test.pl
Log Message:
-----------
test.pl: Harden watchdog against glitches
Only one type of watchdog timer supposedly can exist. But I can see the
possibility that a temporary glitch in the system caused a fallback type
to be used. This commit simply makes sure that when cancelling,
anything out there gets cancelled, instead of assuming there's just one
possibility.
Commit: 353323973697ec5cba602a510473e7fb42e6951b
https://github.com/Perl/perl5/commit/353323973697ec5cba602a510473e7fb42e6951b
Author: Karl Williamson <[email protected]>
Date: 2025-10-07 (Tue, 07 Oct 2025)
Changed paths:
M t/test.pl
M t/test_pl.pod
Log Message:
-----------
test.pl: Calling watchdog cancels existing ones
This enhances the code to work on cases like:
watchdog(5);
sleep 4;
watchdog(10);
sleep 8;
Prior to this commit, you had to explicitly cancel an existing watchdog
before setting a new one.
As a result of this commit, all possible wathdog variables get undef'd
early. This makes later undef calls redundant, so they are removed.
Suggested by Tony Cook
Commit: 1d1db97270871341cec39e88638a4104f94ba86b
https://github.com/Perl/perl5/commit/1d1db97270871341cec39e88638a4104f94ba86b
Author: Karl Williamson <[email protected]>
Date: 2025-10-07 (Tue, 07 Oct 2025)
Changed paths:
M t/test.pl
Log Message:
-----------
test.pl: Always set up (simpler) watchdog END block
This commit removes the existing END blocks that vary depending on the
type of timer being used, and replaces them with a single END block that
always exists, and simply calls watchdog(0). This already cancels
whatever watchdogs are in place, doing nothing if none are.
Spotted by Tony Cook
Even though a test file should clear every timer before exit, this makes
sure it happens.
Compare: https://github.com/Perl/perl5/compare/412b9d48fca3...1d1db9727087
To unsubscribe from these emails, change your notification settings at
https://github.com/Perl/perl5/settings/notifications