diff options
author | das <das@FreeBSD.org> | 2003-02-26 06:44:46 +0000 |
---|---|---|
committer | das <das@FreeBSD.org> | 2003-02-26 06:44:46 +0000 |
commit | 3fa6bd360fe3ba14be1ccfd435a3ebf4c8c977c8 (patch) | |
tree | 880444af9a8eecac34d56a8917f377e0ba9b2e0f /lib/libpthread/thread/thr_kern.c | |
parent | aa73de5a6fe9ae99a9b01fa48f4ded1faec95aab (diff) | |
download | FreeBSD-src-3fa6bd360fe3ba14be1ccfd435a3ebf4c8c977c8.zip FreeBSD-src-3fa6bd360fe3ba14be1ccfd435a3ebf4c8c977c8.tar.gz |
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)
Diffstat (limited to 'lib/libpthread/thread/thr_kern.c')
0 files changed, 0 insertions, 0 deletions