Name

PreForkSingleFork — perform one instead of two forks in PreFork mode

SYNOPSIS

No | Yes

DESCRIPTION

This directive affects Interchange behavior in conjunction with PreFork, by using one instead of two fork() calls to prefork a server.

If you are running Interchange in prefork mode, you should use it in combination with this directive. Only turn PreForkSingleFork off if it causes zombie processes to pile up on your system.

This method reduces system overhead when forking and is the fastest and best way to run a busy Interchange server.

DIRECTIVE TYPE AND DEFAULT VALUE

Global directive

EXAMPLES

Example: Enabling PreForkSingleFork

PreFork yes
PreForkSingleFork yes

NOTES

AVAILABILITY

PreForkSingleFork is available in Interchange versions:

4.6.0-5.7.0 (git-head)

SOURCE

Interchange 5.7.0:

Source: lib/Vend/Config.pm
Line 453

['PreForkSingleFork', 'yesno',            0],

Source: lib/Vend/Config.pm
Line 5414 (context shows lines 5414-5426)

sub parse_yesno {
my($var, $value) = @_;
$_ = $value;
if (m/^y/i || m/^t/i || m/^1/ || m/^on/i) {
  return 1;
}
elsif (m/^n/i || m/^f/i || m/^0/ || m/^of/i) {
  return 0;
}
else {
  config_error("Use 'yes' or 'no' for the $var directive\n");
}
}

AUTHORS

Interchange Development Group

SEE ALSO

StartServers(7ic), PreFork(7ic)

DocBook! Interchange!