summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fml/lib/FML/Process/Kernel.pm9
-rw-r--r--fml/lib/Mail/Delivery/Queue.pm8
2 files changed, 13 insertions, 4 deletions
diff --git a/fml/lib/FML/Process/Kernel.pm b/fml/lib/FML/Process/Kernel.pm
index cfbf1d90..a6158d56 100644
--- a/fml/lib/FML/Process/Kernel.pm
+++ b/fml/lib/FML/Process/Kernel.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: Kernel.pm,v 1.163 2003/03/06 09:34:15 fukachan Exp $
+# $FML: Kernel.pm,v 1.164 2003/03/14 03:51:48 fukachan Exp $
#
package FML::Process::Kernel;
@@ -1774,7 +1774,12 @@ sub queue_in
}
$queue->in( $msg ) && Log("queue=$qid in");
- $queue->setrunnable();
+ if ($queue->setrunnable()) {
+ Log("queue=$qid runnable");
+ }
+ else {
+ Log("queue=$qid broken");
+ }
# return queue object
return $queue;
diff --git a/fml/lib/Mail/Delivery/Queue.pm b/fml/lib/Mail/Delivery/Queue.pm
index b2a977d4..1dc13e9e 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.22 2002/12/20 03:50:27 fukachan Exp $
+# $FML: Queue.pm,v 1.23 2003/02/11 12:03:19 fukachan Exp $
#
package Mail::Delivery::Queue;
@@ -461,7 +461,11 @@ sub setrunnable
}
# move new/$id to active/$id
- rename( $self->{ _new_qf }, $self->{ _active_qf } );
+ if (rename( $self->{ _new_qf }, $self->{ _active_qf } )) {
+ return 1;
+ }
+
+ return 0;
}