Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1154565

Bug#1040947: perl: readline fails to detect updated file

From Niko Tyni <ntyni@debian.org>
Newsgroups linux.debian.bugs.dist
Subject Bug#1040947: perl: readline fails to detect updated file
Date 2023-07-17 07:30 +0200
Message-ID <GSoY1-MVG-3@gated-at.bofh.it> (permalink)
References <GQPzj-iRF-1@gated-at.bofh.it> <GQPzj-iRF-1@gated-at.bofh.it> <GS5sl-B1u-17@gated-at.bofh.it> <GQPzj-iRF-1@gated-at.bofh.it> <GS5sl-B1u-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sun, Jul 16, 2023 at 11:35:49AM +0300, Niko Tyni wrote:
> Control: forwarded -1 https://github.com/Perl/perl5/issues/21240
> 
> On Wed, Jul 12, 2023 at 09:17:54PM +0000, Eric Wong wrote:
> > Package: perl
> > Version: 5.36.0-7
> > Severity: normal
> > Tags: upstream
> > 
> > Dear Maintainer,
> > 
> > The `readline' op (`<FH>') no longer detects updates to file
> > which is being written to in Perl 5.36.0 after updating to bookworm.
> > 
> > The attached script worked fine with Perl 5.32.1 in oldstable,
> > both scripts show the size changing with the `-s FH' op.
> > Same behavior on both amd64 and i386.
> 
> Thanks for the report.
> 
> This changed with
> 
>   https://github.com/Perl/perl5/commit/80c1f1e45e8ef8c27d170fae7ade41971fe20218
> 
> which went upstream in 5.37.4. We backported it for 5.36 to fix #1016369 .
> 
> I've forwarded it upstream as https://github.com/Perl/perl5/issues/21240

Upstream says it's a direct consequence of fixing #1016369 so
the earlier behaviour of reading after EOF was a bug.

You need to clear the EOF flag by calling $rd->clearerr() or
seek($rd, 0, SEEK_CUR) to get the appended lines.

-- 
Niko Tyni   ntyni@debian.org

Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#1040947: perl: readline fails to detect updated file Eric Wong <e@80x24.org> - 2023-07-12 23:30 +0200
  Bug#1040947: perl: readline fails to detect updated file Niko Tyni <ntyni@debian.org> - 2023-07-16 10:40 +0200
    Bug#1040947: perl: readline fails to detect updated file Niko Tyni <ntyni@debian.org> - 2023-07-17 07:30 +0200
      Bug#1040947: perl: readline fails to detect updated file Eric Wong <e@80x24.org> - 2023-07-17 09:10 +0200
        Bug#1040947: perl: readline fails to detect updated file Ian Jackson <ijackson@chiark.greenend.org.uk> - 2023-07-17 16:00 +0200
          Bug#1040947: perl: readline fails to detect updated file Eric Wong <e@80x24.org> - 2023-07-18 03:30 +0200
            Bug#1040947: perl: readline fails to detect updated file Niko Tyni <ntyni@debian.org> - 2023-07-18 15:30 +0200
              Bug#1040947: perl: readline fails to detect updated file Eric Wong <e@80x24.org> - 2023-07-19 06:00 +0200

csiph-web