Skip to content
Commit 0fa3474b authored by Olivier Fourdan's avatar Olivier Fourdan Committed by Daniel Stone
Browse files

shm: provide actual error on mmap failed



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: default avatarOlivier Fourdan <ofourdan@redhat.com>
Reviewed-by: default avatarJonas Ådahl <jadahl@gmail.com>
parent bf7cc680
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment