Treat mmap() error as fatal too, i.e. do exit(1) instead of return

This commit is contained in:
Andrey A. Chernov 2001-03-26 19:36:27 +00:00
parent da57ed7091
commit ad859a471d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=74830

View File

@ -290,7 +290,7 @@ rlines(fp, off, sbp)
if ((start = mmap(NULL, (size_t)size,
PROT_READ, MAP_SHARED, fileno(fp), (off_t)0)) == MAP_FAILED) {
ierr();
return;
exit(1);
}
/* Last char is special, ignore whether newline or not. */