Skip to content

Commit

Permalink
More error reporting with munmap
Browse files Browse the repository at this point in the history
  • Loading branch information
kpu committed Jun 21, 2019
1 parent 2e7e954 commit b65b7b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/mmap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ void UnmapOrThrow(void *start, size_t length) {
#if defined(_WIN32) || defined(_WIN64)
UTIL_THROW_IF(!::UnmapViewOfFile(start), ErrnoException, "Failed to unmap a file");
#else
UTIL_THROW_IF(munmap(start, length), ErrnoException, "munmap failed");
UTIL_THROW_IF(munmap(start, length), ErrnoException, "munmap failed with " << start << " for length " << length);
#endif
}

Expand Down

0 comments on commit b65b7b1

Please sign in to comment.