Re: [PATCH] shm: provide actual error on mmap failed

2018-02-09 Thread Daniel Stone
Hi, On 6 February 2018 at 13:32, Jonas Ådahl 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

Re: [PATCH] shm: provide actual error on mmap failed

2018-02-06 Thread Jonas Ådahl
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. > >

[PATCH] shm: provide actual error on mmap failed

2018-02-05 Thread Olivier Fourdan
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: