ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cf.schmorp.de/server/lib/cf.pm
(Generate patch)

Comparing cf.schmorp.de/server/lib/cf.pm (file contents):
Revision 1.146 by root, Sun Jan 7 23:10:43 2007 UTC vs.
Revision 1.148 by root, Mon Jan 8 12:39:16 2007 UTC

1133 my $path = path $pl; 1133 my $path = path $pl;
1134 my $guard = cf::lock_acquire "user_save:$path"; 1134 my $guard = cf::lock_acquire "user_save:$path";
1135 1135
1136 return if $pl->{deny_save}; 1136 return if $pl->{deny_save};
1137 1137
1138 IO::AIO::aio_mkdir playerdir $pl, 0770; 1138 Coro::AIO::aio_mkdir playerdir $pl, 0770;
1139 $pl->{last_save} = $cf::RUNTIME; 1139 $pl->{last_save} = $cf::RUNTIME;
1140 1140
1141 Coro::cede;
1142 $pl->save_pl ($path); 1141 $pl->save_pl ($path);
1143 Coro::cede; 1142 Coro::cede;
1144} 1143}
1145 1144
1146sub new($) { 1145sub new($) {
2099 $cf::map::MAX_RESET = $CFG{map_max_reset} if exists $CFG{map_max_reset}; 2098 $cf::map::MAX_RESET = $CFG{map_max_reset} if exists $CFG{map_max_reset};
2100 $cf::map::DEFAULT_RESET = $CFG{map_default_reset} if exists $CFG{map_default_reset}; 2099 $cf::map::DEFAULT_RESET = $CFG{map_default_reset} if exists $CFG{map_default_reset};
2101 2100
2102 if (exists $CFG{mlockall}) { 2101 if (exists $CFG{mlockall}) {
2103 eval { 2102 eval {
2104 $CFG{mlockall} ? &mlockall : &munlockall 2103 $CFG{mlockall} ? eval "mlockall()" : eval "munlockall()"
2105 and die "WARNING: m(un)lockall failed: $!\n"; 2104 and die "WARNING: m(un)lockall failed: $!\n";
2106 }; 2105 };
2107 warn $@ if $@; 2106 warn $@ if $@;
2108 } 2107 }
2109} 2108}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines