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

Comparing AnyEvent/lib/AnyEvent/Strict.pm (file contents):
Revision 1.10 by root, Wed Apr 1 14:02:27 2009 UTC vs.
Revision 1.11 by root, Tue Apr 14 04:27:32 2009 UTC

104sub child { 104sub child {
105 my $class = shift; 105 my $class = shift;
106 my %arg = @_; 106 my %arg = @_;
107 107
108 ref $arg{cb} 108 ref $arg{cb}
109 or croak "AnyEvent->signal called with illegal cb argument '$arg{cb}'"; 109 or croak "AnyEvent->child called with illegal cb argument '$arg{cb}'";
110 delete $arg{cb}; 110 delete $arg{cb};
111 111
112 $arg{pid} =~ /^-?\d+$/ 112 $arg{pid} =~ /^-?\d+$/
113 or croak "AnyEvent->signal called with illegal pid value '$arg{pid}'"; 113 or croak "AnyEvent->child called with malformed pid value '$arg{pid}'";
114 delete $arg{pid}; 114 delete $arg{pid};
115 115
116 croak "AnyEvent->signal called with unsupported parameter(s) " . join ", ", keys %arg 116 croak "AnyEvent->child called with unsupported parameter(s) " . join ", ", keys %arg
117 if keys %arg; 117 if keys %arg;
118 118
119 $class->SUPER::child (@_) 119 $class->SUPER::child (@_)
120} 120}
121 121

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines