Treat mmap() error as fatal too, i.e. do exit(1) instead of return
This commit is contained in:
parent
da57ed7091
commit
ad859a471d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=74830
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user