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.197 by root, Thu Mar 26 15:51:44 2009 UTC vs.
Revision 1.198 by root, Thu Mar 26 20:17:44 2009 UTC

1050# default implementation for ->signal 1050# default implementation for ->signal
1051 1051
1052our ($SIGPIPE_R, $SIGPIPE_W, %SIG_CB, %SIG_EV, $SIG_IO); 1052our ($SIGPIPE_R, $SIGPIPE_W, %SIG_CB, %SIG_EV, $SIG_IO);
1053 1053
1054sub _signal_exec { 1054sub _signal_exec {
1055 sysread $SIGPIPE_R, my $dummy, 4;
1056
1055 while (%SIG_EV) { 1057 while (%SIG_EV) {
1056 sysread $SIGPIPE_R, my $dummy, 4;
1057 for (keys %SIG_EV) { 1058 for (keys %SIG_EV) {
1058 delete $SIG_EV{$_}; 1059 delete $SIG_EV{$_};
1059 $_->() for values %{ $SIG_CB{$_} || {} }; 1060 $_->() for values %{ $SIG_CB{$_} || {} };
1060 } 1061 }
1061 } 1062 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines