Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Feb 2003 22:44:46 -0800 (PST)
From:      David Schultz <das@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/usr.bin/cmp regular.c
Message-ID:  <200302260644.h1Q6ikVK050622@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
das         2003/02/25 22:44:46 PST

  Modified files:
    usr.bin/cmp          regular.c 
  Log:
  The cmp utility has the questionable feature of using mmap when
  comparing regular files.  Add a SIGSEGV handler to make its
  behavior less surprising when a read error occurs.  The handler
  does not attempt to distinguish errors from file truncation, but
  anyone actively modifying a file while trying to compare it
  shouldn't even expect something sane to happen.
  
  PR:             45391
  Reviewed by:    mike (mentor)
  
  Revision  Changes    Path
  1.18      +21 -0     src/usr.bin/cmp/regular.c

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200302260644.h1Q6ikVK050622>