[PATCH] shm: provide actual error on mmap failed

Daniel Stone daniel at fooishbar.org
Fri Feb 9 17:03:20 UTC 2018


Hi,

On 6 February 2018 at 13:32, Jonas Ådahl <jadahl at gmail.com> wrote:
> On Mon, Feb 05, 2018 at 03:39:43PM +0100, Olivier Fourdan wrote:
>> When an mmap() fails, a WL_SHM_ERROR_INVALID_FD is raised and the client
>> is killed.
>>
>> However, there is no indication of the actual system error that caused
>> mmap() to fail, which makes such error harder to investigate.
>>
>> Provide the actual error message that caused mmap() to fail.
>>
>> Signed-off-by: Olivier Fourdan <ofourdan at redhat.com>
>
> Reviewed-by: Jonas Ådahl <jadahl at gmail.com>

Sounds reasonable - pushed with Jonas's review.

Cheers,
Daniel


More information about the wayland-devel mailing list