Sometimes these mmap's fail, and it causes SEGFAULTS. I assume this was accidentally left off when this was originally landed. Signed-off-by: Dylan Yudaken <dylany@xxxxxx> --- test/pollfree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/pollfree.c b/test/pollfree.c index e2511df..d753ffe 100644 --- a/test/pollfree.c +++ b/test/pollfree.c @@ -406,10 +406,10 @@ int main(int argc, char *argv[]) ret = mmap((void *)0x1ffff000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); if (ret == MAP_FAILED) return 0; - mmap((void *)0x20000000ul, 0x1000000ul, 7ul, 0x32ul, -1, 0ul); + ret = mmap((void *)0x20000000ul, 0x1000000ul, 7ul, 0x32ul, -1, 0ul); if (ret == MAP_FAILED) return 0; - mmap((void *)0x21000000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); + ret = mmap((void *)0x21000000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); if (ret == MAP_FAILED) return 0; loop(); -- 2.30.2