Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Feb 2017 17:23:39 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 165471] bsdgrep(1) hang/very slow with mmap
Message-ID:  <bug-165471-8-XRfZofoDYq@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-165471-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-165471-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D165471

--- Comment #5 from commit-hook@freebsd.org ---
A commit references this bug:

Author: emaste
Date: Sun Feb 19 17:23:28 UTC 2017
New revision: 313948
URL: https://svnweb.freebsd.org/changeset/base/313948

Log:
  bsdgrep: fix EOF handling with --mmap

  Rework part of the loop in grep_fgetln to return the rest of the line
  and ensure that we still advance the buffer by the length of the rest
  of the line.

  PR:           165471
  Submitted by: Kyle Evans <kevans91@ksu.edu>
  MFC after:    1 month

Changes:
  head/usr.bin/grep/file.c

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-165471-8-XRfZofoDYq>