ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/DC/DB.pm
(Generate patch)

Comparing deliantra/Deliantra-Client/DC/DB.pm (file contents):
Revision 1.41 by root, Wed Dec 24 04:09:27 2008 UTC vs.
Revision 1.42 by root, Sun Jan 4 10:22:19 2009 UTC

18use utf8; 18use utf8;
19 19
20use File::Path (); 20use File::Path ();
21use Carp (); 21use Carp ();
22use Storable (); 22use Storable ();
23use AnyEvent::Util ();
23use Config; 24use Config;
24use BDB; 25use BDB;
25 26
26use DC; 27use DC;
27 28
355 356
356 print { $LOG_FH{$path} } "$ts $line\n" 357 print { $LOG_FH{$path} } "$ts $line\n"
357} 358}
358 359
359sub run { 360sub run {
360 ($FH, my $fh) = DC::socketpipe; 361 ($FH, my $fh) = AnyEvent::Util::portable_socketpair
362 or die "unable to create database socketpair: $!";
361 363
362 my $oldfh = select $FH; $| = 1; select $oldfh; 364 my $oldfh = select $FH; $| = 1; select $oldfh;
363 my $oldfh = select $fh; $| = 1; select $oldfh; 365 my $oldfh = select $fh; $| = 1; select $oldfh;
364 366
365 my $pid = fork; 367 my $pid = fork;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines