summaryrefslogtreecommitdiff
path: root/fml/lib/FML/Process
diff options
context:
space:
mode:
authorfukachan <fukachan>2005-05-27 00:59:13 +0000
committerfukachan <fukachan>2005-05-27 00:59:13 +0000
commitdde66453bbe01d26eb36e2829eff60f290200e2f (patch)
treec4981a0dcb6216f5e5445c25b99c92f27c76b5e5 /fml/lib/FML/Process
parent1c709f7056f4c79bfdbd07001579e1d903bfe608 (diff)
downloadfml8-dde66453bbe01d26eb36e2829eff60f290200e2f.tar.gz
fml8-dde66453bbe01d26eb36e2829eff60f290200e2f.tar.bz2
fml8-dde66453bbe01d26eb36e2829eff60f290200e2f.zip
more strict error handling.
more comments.
Diffstat (limited to 'fml/lib/FML/Process')
-rw-r--r--fml/lib/FML/Process/Distribute.pm14
1 files changed, 11 insertions, 3 deletions
diff --git a/fml/lib/FML/Process/Distribute.pm b/fml/lib/FML/Process/Distribute.pm
index 3efeae0d..12cfce9b 100644
--- a/fml/lib/FML/Process/Distribute.pm
+++ b/fml/lib/FML/Process/Distribute.pm
@@ -1,9 +1,9 @@
#-*- perl -*-
#
-# Copyright (C) 2000,2001,2002,2003,2004 Ken'ichi Fukamachi
+# Copyright (C) 2000,2001,2002,2003,2004,2005 Ken'ichi Fukamachi
# All rights reserved.
#
-# $FML: Distribute.pm,v 1.157 2004/11/03 23:26:52 fukachan Exp $
+# $FML: Distribute.pm,v 1.158 2004/12/05 16:19:09 fukachan Exp $
#
package FML::Process::Distribute;
@@ -573,6 +573,11 @@ sub _deliver_article
$curproc->unlock($lock_channel);
}
+ else {
+ # XXX-TODO: o.k. ?
+ $curproc->logerror("queue: cannot initialize queue system");
+ $fatal = 1;
+ }
# 2. distribute article
my $fp = sub { $curproc->logdebug(@_);}; # pointer to the log function
@@ -612,6 +617,9 @@ sub _deliver_article
$recipient_maps = $queue->recipients_file_path($qid);
}
}
+ else {
+ # XXX-TODO ?
+ }
$curproc->lock($lock_channel) unless defined $queue;
$service->deliver(
@@ -754,7 +762,7 @@ Ken'ichi Fukamachi
=head1 COPYRIGHT
-Copyright (C) 2000,2001,2002,2003,2004 Ken'ichi Fukamachi
+Copyright (C) 2000,2001,2002,2003,2004,2005 Ken'ichi Fukamachi
All rights reserved. This program is free software; you can
redistribute it and/or modify it under the same terms as Perl itself.