Skip Menu |

This queue is for tickets about the Time-Format CPAN distribution.

Report information
The Basics
Id: 121367
Status: resolved
Priority: 0/
Queue: Time-Format

People
Owner: eric.roode.cpan [...] gmail.com
Requestors: PLICEASE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 1.13



Subject: Time::Format is not fork safe
I think this may be related to rt#74880, but honestly I didn't quite understand what the reporter for that issue was getting at. Very simple and easy to reproduce with this one-liner: % perl -MTime::Format -E 'fork(); Time::Format::time_format()' Goto undefined subroutine &Time::Format::time_format_perlonly at /usr/local/lib/perl/Time/Format.pm line 79, <DATA> chunk 1. If you call time_format() BEFORE the fork then it works just fine. I think this maybe because the DATA file handle is shared and which ever process gets there first slurps the whole thing in and so it is not available to the other process.
I believe this problem to be fixed. At least the test case submitted by the bug reporter now succeeds.