diff options
| author | fukachan <fukachan> | 2006-04-03 09:55:01 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2006-04-03 09:55:01 +0000 |
| commit | 4d684f91bfedabc658f142b291f03682adf0fd66 (patch) | |
| tree | e5b39d59962227a42ee56bb12dd23df868edbc50 /fml | |
| parent | 888676393d1f781f19ad87daf38ebbdace885b7e (diff) | |
| download | fml8-4d684f91bfedabc658f142b291f03682adf0fd66.tar.gz fml8-4d684f91bfedabc658f142b291f03682adf0fd66.tar.bz2 fml8-4d684f91bfedabc658f142b291f03682adf0fd66.zip | |
bug fixed to lock new or lock queue file, not active queue.
Diffstat (limited to 'fml')
| -rw-r--r-- | fml/lib/Mail/Delivery/Queue.pm | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/fml/lib/Mail/Delivery/Queue.pm b/fml/lib/Mail/Delivery/Queue.pm index 68e93796..408af236 100644 --- a/fml/lib/Mail/Delivery/Queue.pm +++ b/fml/lib/Mail/Delivery/Queue.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: Queue.pm,v 1.61 2006/04/02 06:56:08 fukachan Exp $ +# $FML: Queue.pm,v 1.62 2006/04/03 03:16:48 fukachan Exp $ # package Mail::Delivery::Queue; @@ -727,11 +727,12 @@ sub lock my $qf_new = $self->new_file_path($id); my $qf_lock = $self->lock_file_path($id); my $qf_act = $self->active_file_path($id); - my $lckfile = $is_prep ? $qf_new : (-f $qf_lock ? $qf_lock : $qf_act); - my $fh = new FileHandle $lckfile; + + $self->touch($qf_lock); + my $lockfile = $is_prep ? $qf_new : (-f $qf_lock ? $qf_lock : $qf_act); use IO::Adapter; - my $io = new IO::Adapter $lckfile; + my $io = new IO::Adapter $lockfile; if (defined $io) { my $r = $io->lock(); if ($r) { |
