in reply to Interesting issue with DBD::AnyData?
I think you've been flock blocked.
The code is hanging trying to get an exclusive flock on the output filehandle (well, IO::File). I'm not entirely sure why this is so, but I am confused by this line at the top of AnyData::Storage::File:
use constant HAS_FLOCK => eval { flock STDOUT, 0; 1 };
Which to me looks like it would always return 1. If I remove the '1' from that definition, your program works, but that '1' is in all of the versions on CPAN, so I probably just don't understand constants flock. Of course, you'd never see this as a problem if your perl implementation supports flock ...
Updated: To expand on jZed's explanation, the flock fails fatally when flock is not supported. eval catches this and returns undef. I was mistakenly thinking it failed and continued. I flock-ed up.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Interesting issue with DBD::AnyData?
by jZed (Prior) on Nov 17, 2005 at 20:52 UTC | |
by idsfa (Vicar) on Nov 17, 2005 at 20:56 UTC | |
by jZed (Prior) on Nov 17, 2005 at 21:00 UTC | |
by idsfa (Vicar) on Nov 18, 2005 at 20:13 UTC |