diff options
Diffstat (limited to 'executor/executor_bsd.h')
| -rw-r--r-- | executor/executor_bsd.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/executor/executor_bsd.h b/executor/executor_bsd.h index dc3ebbdd8..1af99f4fc 100644 --- a/executor/executor_bsd.h +++ b/executor/executor_bsd.h @@ -33,8 +33,9 @@ static void os_init(int argc, char** argv, void* data, size_t data_size) flags |= MAP_EXCL; #endif - if (mmap(data, data_size, prot, flags, -1, 0) != data) - fail("mmap of data segment failed"); + void* got = mmap(data, data_size, prot, flags, -1, 0); + if (data != got) + failmsg("mmap of data segment failed", "want %p, got %p", data, got); // Makes sure the file descriptor limit is sufficient to map control pipes. struct rlimit rlim; |
