Re: [PATCH xwayland] xwayland-shm: fortify fallocate against EINTR

2016-04-25 Thread Pekka Paalanen
On Mon, 25 Apr 2016 21:07:17 +0800 Jonas Ådahl wrote: > On Mon, Apr 25, 2016 at 02:38:21PM +0200, Marek Chalupa wrote: > > > > On 04/25/16 12:20, Pekka Paalanen wrote: > > >On Mon, 25 Apr 2016 11:33:00 +0200 > > >Marek Chalupa wrote: > > > > > >>If posix_fallocate or ftruncate is interrupte

Re: Fwd: Re: [PATCH xwayland] xwayland-shm: fortify fallocate against EINTR

2016-04-25 Thread Jonas Ådahl
On Mon, Apr 25, 2016 at 02:38:21PM +0200, Marek Chalupa wrote: > > On 04/25/16 12:20, Pekka Paalanen wrote: > >On Mon, 25 Apr 2016 11:33:00 +0200 > >Marek Chalupa wrote: > > > >>If posix_fallocate or ftruncate is interrupted by signal > >>while working, we return -1 as fd and the allocation proce

Fwd: Re: [PATCH xwayland] xwayland-shm: fortify fallocate against EINTR

2016-04-25 Thread Marek Chalupa
On 04/25/16 12:20, Pekka Paalanen wrote: On Mon, 25 Apr 2016 11:33:00 +0200 Marek Chalupa wrote: If posix_fallocate or ftruncate is interrupted by signal while working, we return -1 as fd and the allocation process returns BadAlloc error. That causes xwayland clients to abort with 'BadAlloc (