diff options
| author | fukachan <fukachan> | 2002-08-19 12:41:17 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2002-08-19 12:41:17 +0000 |
| commit | 7992b4a078482f54519c774bc75ec0cce677a664 (patch) | |
| tree | 128b0252bd170dc396f7eb6d837e20fda947ad92 /fml | |
| parent | 0e97db9e777183b0cb45cca32c4f56547997e2e5 (diff) | |
| download | fml8-7992b4a078482f54519c774bc75ec0cce677a664.tar.gz fml8-7992b4a078482f54519c774bc75ec0cce677a664.tar.bz2 fml8-7992b4a078482f54519c774bc75ec0cce677a664.zip | |
enable process if $use_distribute_program is defined.
Diffstat (limited to 'fml')
| -rw-r--r-- | fml/lib/FML/Process/Distribute.pm | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/fml/lib/FML/Process/Distribute.pm b/fml/lib/FML/Process/Distribute.pm index 71dbe255..ec8ca5b3 100644 --- a/fml/lib/FML/Process/Distribute.pm +++ b/fml/lib/FML/Process/Distribute.pm @@ -3,7 +3,7 @@ # Copyright (C) 2000,2001,2002 Ken'ichi Fukamachi # All rights reserved. # -# $FML: Distribute.pm,v 1.90 2002/08/14 03:31:56 fukachan Exp $ +# $FML: Distribute.pm,v 1.91 2002/08/14 14:17:09 fukachan Exp $ # package FML::Process::Distribute; @@ -84,7 +84,14 @@ sub prepare $curproc->load_config_files( $args->{ cf_list } ); $curproc->fix_perl_include_path(); $curproc->scheduler_init(); - $curproc->parse_incoming_message($args); + + if ($config->yes('use_distribute_program')) { + $curproc->parse_incoming_message($args); + } + else { + LogError("use of distribute_program prohibited"); + exit(0); + } $eval = $config->get_hook( 'distribute_prepare_end_hook' ); if ($eval) { eval qq{ $eval; }; LogWarn($@) if $@; } |
