[Bug 165471] bsdgrep(1) hang/very slow with mmap

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Feb 19 17:23:41 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=165471

--- Comment #5 from commit-hook at 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 at ksu.edu>
  MFC after:    1 month

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

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


More information about the freebsd-bugs mailing list