Subject: | Error reading ./test.pid |
test.pl may fail like this:
...
PERL_DL_NONLAZY=1 "/usr/local/bin/perl" "-Iblib/lib" "-Iblib/arch" test.pl
1..12
Use of uninitialized value $fh in pattern match (m//) at blib/lib/Proc/PID/File.pm line 286.
ok 1 - simple: thread safe
Error reading ./test.pid - No such file or directory at test.pl line 71.
# Looks like your test exited with 2 just after 1.
Use of uninitialized value $fh in pattern match (m//) at blib/lib/Proc/PID/File.pm line 286 during global destruction.
*** Error code 2
...
Seen on a FreeBSD 12 and 13 system, however, it seems to be difficult to reproduce the problem, so maybe there's a race condition?