Subject: | Bug in File::Tail::select when using normal file handles |
When using normal file handlers with File::Tail::select,
the arguments of select are not updated due to the following codes
splice(@_,0,3,$savein,$saveout,$saveerr);
this set of codes break the aliasing property,
instead of $_[0] aliasing the argument, now it will be assigned to
a new variable '$savein'.
because of this code, even if $_[0], $_[1], $_[2], is used in
the native select subroutine, updates from the native 'select'
subroutine will not be propogated to the arguments given to
File::Tail::select, the patch below will solve the problem.
480c480
< splice(@_,0,3,$savein,$saveout,$saveerr);
---
Show quoted text
> #splice(@_,0,3,$savein,$saveout,$saveerr);
There is no need for the codes above as it should be the
responsiblity of the invoking subroutine to make sure
that the fileno(s) in the arugment are updated to
fileno(s) to monitor before being passed to the File::Tail::select
subroutine.
Thanks.