in reply to alarm and reading from file decriptor

I can't duplicate the error; this works as expected in 5.8.8. I do get a subsequent "sh: Broken pipe" error message in the interupted version, probably because the alarm does not close the file handle.

Dum Spiro Spero
  • Comment on Re: alarm and reading from file decriptor

Replies are listed 'Best First'.
Re^2: alarm and reading from file decriptor
by tomtastic (Initiate) on May 06, 2015 at 15:31 UTC
    Seems like it could be a bug with PERL v5.8.4 then, I wonder if there's a workaround...

      Explictly close the file handle in the alarm?

      Dum Spiro Spero
        If I close FD1 in the anonymous sub for the alarm, I get "Bad file number".