ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/login.ext
(Generate patch)

Comparing deliantra/server/ext/login.ext (file contents):
Revision 1.70 by root, Sun Sep 2 12:37:10 2007 UTC vs.
Revision 1.71 by root, Sun Sep 2 12:45:44 2007 UTC

116# delete a player directory, be non-blocking AND synchronous... 116# delete a player directory, be non-blocking AND synchronous...
117# (thats hard, so we crap out and fork). 117# (thats hard, so we crap out and fork).
118sub nuke_playerdir { 118sub nuke_playerdir {
119 my ($user) = @_; 119 my ($user) = @_;
120 120
121 aio_rename "$PLAYERDIR/$user", "$PLAYERDIR/~$Coro::current~deleting~";
122 system "rm -rf \Q$PLAYERDIR/~$Coro::current~deleting~\E &"; 121 my $temp = "$PLAYERDIR/~$Coro::current~deleting~";
122
123 cf::fork_call {
124 rename "$PLAYERDIR/$user", $temp;
125 system "rm", "-rf", $temp;
126 };
123} 127}
124 128
125cf::client->attach (on_addme => sub { 129cf::client->attach (on_addme => sub {
126 my ($ns) = @_; 130 my ($ns) = @_;
127 131

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines