diff options
Diffstat (limited to 'executor/executor_darwin.h')
| -rw-r--r-- | executor/executor_darwin.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/executor/executor_darwin.h b/executor/executor_darwin.h index c16691663..d6efe0063 100644 --- a/executor/executor_darwin.h +++ b/executor/executor_darwin.h @@ -121,3 +121,11 @@ static bool use_cover_edges(uint64 pc) { return true; } + +static void cover_reserve_fd(cover_t* cov) +{ + int fd = open("/dev/null", O_RDONLY); + if (fd < 0) + fail("failed to open /dev/null"); + dup2(fd, cov->fd); +} |
