Dovecot locking method

This commit is contained in:
Jamie Cameron
2008-04-20 20:13:05 +00:00
parent a2dab195c7
commit b2cc6c818b
5 changed files with 77 additions and 2 deletions

View File

@ -319,5 +319,11 @@ local $out = `$config{'dovecot'} --version 2>&1`;
return $out =~ /([0-9\.]+)/ ? $1 : undef;
}
sub list_lock_methods
{
local ($forindex) = @_;
return ( "dotlock", "fcntl", "flock", $forindex ? ( ) : ( "lockf" ) );
}
1;