Skip to content

Commit

Permalink
fixed a crash after fork, another typing error. (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoguan authored Oct 13, 2020
1 parent c970140 commit 3fc0c85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/meshable_arena.cc
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ void MeshableArena::afterForkChild() {
}
#endif

void *ptr = mmap(remove, sz, HL_MMAP_PROTECTION_MASK, kMapShared | MAP_FIXED, _fd, keepOff * kPageSize);
void *ptr = mmap(remove, sz, HL_MMAP_PROTECTION_MASK, kMapShared | MAP_FIXED, newFd, keepOff * kPageSize);

hard_assert_msg(ptr != MAP_FAILED, "mesh remap failed: %d", errno);

Expand Down

0 comments on commit 3fc0c85

Please sign in to comment.