|
From: | Warner Losh |
Subject: | Re: [PATCH v2 7/9] bsd-user/mmap.c: Don't mmap fd == -1 independently from MAP_ANON flag |
Date: | Sun, 26 Sep 2021 11:08:03 -0600 |
On 9/21/21 9:56 PM, Warner Losh wrote:
> /* no page was there, so we allocate one */
> void *p = mmap(host_start, qemu_host_page_size, prot,
> - flags | MAP_ANON, -1, 0);
> + flags | ((fd != -1) ? MAP_ANON : 0), -1, 0);
I don't understand this change, given that the actual fd passed is always -1.
r~
[Prev in Thread] | Current Thread | [Next in Thread] |