summaryrefslogtreecommitdiff
path: root/fml/lib/FML/Process/Kernel.pm
diff options
context:
space:
mode:
authorfukachan <fukachan>2002-08-14 14:22:14 +0000
committerfukachan <fukachan>2002-08-14 14:22:14 +0000
commit6b0f774f82676fedd09cc0d2763edcbbc6cf4ce1 (patch)
tree19718a21fa1df3b2c78c5d7346cd6f59da098883 /fml/lib/FML/Process/Kernel.pm
parent7764fcaba8dbcf01722a322bf3adb301bec87520 (diff)
downloadfml8-6b0f774f82676fedd09cc0d2763edcbbc6cf4ce1.tar.gz
fml8-6b0f774f82676fedd09cc0d2763edcbbc6cf4ce1.tar.bz2
fml8-6b0f774f82676fedd09cc0d2763edcbbc6cf4ce1.zip
define do_nothing($reason), same as stop_this_process() but for 4.0 memory
Diffstat (limited to 'fml/lib/FML/Process/Kernel.pm')
-rw-r--r--fml/lib/FML/Process/Kernel.pm19
1 files changed, 18 insertions, 1 deletions
diff --git a/fml/lib/FML/Process/Kernel.pm b/fml/lib/FML/Process/Kernel.pm
index fe1bd9c7..73fa83c9 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.127 2002/08/14 14:14:33 fukachan Exp $
+# $FML: Kernel.pm,v 1.128 2002/08/14 14:17:09 fukachan Exp $
#
package FML::Process::Kernel;
@@ -935,6 +935,11 @@ sub _check_restrictions
Set "we should refuse this processing now" flag.
We should stop this process as soon as possible.
+=head2 do_nothing($reason)
+
+same as stop_this_process($reason).
+dedicated to fml 4.0's C<$DO_NOTHING> variable.
+
=head2 is_refused()
We should stop this process as soon as possible due to something
@@ -955,6 +960,18 @@ sub stop_this_process
}
+# Descriptions: synonym of stop_this_process()
+# Arguments: OBJ($curproc) STR($reason)
+# History: dedicated to $DO_NOTHING variable in fml 4.0
+# Side Effects: none
+# Return Value: NUM(1 or 0)
+sub do_nothing
+{
+ my ($curproc, $reason) = @_;
+ $curproc->stop_this_process($reason);
+}
+
+
# Descriptions: inform whether we should stop further processing?
# Arguments: OBJ($curproc) STR($reason)
# Side Effects: none