ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/lib/AnyEvent.pm
(Generate patch)

Comparing AnyEvent/lib/AnyEvent.pm (file contents):
Revision 1.37 by root, Fri Nov 23 10:42:00 2007 UTC vs.
Revision 1.38 by root, Sun Nov 25 14:08:12 2007 UTC

252no warnings; 252no warnings;
253use strict; 253use strict;
254 254
255use Carp; 255use Carp;
256 256
257our $VERSION = '2.7'; 257our $VERSION = '2.8';
258our $MODEL; 258our $MODEL;
259 259
260our $AUTOLOAD; 260our $AUTOLOAD;
261our @ISA; 261our @ISA;
262 262
378our $CHLD_DELAY_W; 378our $CHLD_DELAY_W;
379our $PID_IDLE; 379our $PID_IDLE;
380our $WNOHANG; 380our $WNOHANG;
381 381
382sub _child_wait { 382sub _child_wait {
383 while (0 <= (my $pid = waitpid -1, $WNOHANG)) { 383 while (0 < (my $pid = waitpid -1, $WNOHANG)) {
384 $_->($pid, $?) for (values %{ $PID_CB{$pid} || {} }), 384 $_->($pid, $?) for (values %{ $PID_CB{$pid} || {} }),
385 (values %{ $PID_CB{0} || {} }); 385 (values %{ $PID_CB{0} || {} });
386 } 386 }
387 387
388 undef $PID_IDLE; 388 undef $PID_IDLE;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines