Re: [Patch] weston-launch: Fix tight poll/recvmsg loop on weston exit

2015-10-07 Thread Bruno Prémont
On Wed, 07 Oct 2015 15:27:18 -0500 Derek Foreman wrote: > Still need to decide what to do with this patch... > > comments below. Sorry for not being very responsive, I'm running rather low on time and have had no time to play around with weston to determine which factors are needed in addition to

Re: [Patch] weston-launch: Fix tight poll/recvmsg loop on weston exit

2015-10-07 Thread Derek Foreman
Still need to decide what to do with this patch... comments below. On 14/05/15 03:43 PM, Derek Foreman wrote: > On 27/03/15 07:29 AM, Bruno Prémont wrote: >> When weston fails to run while being launched by weston-launch it's >> socketpair causes poll() to notify POLLIN|POLLHUP and lets recvmsg()

Re: [Patch] weston-launch: Fix tight poll/recvmsg loop on weston exit

2015-05-14 Thread Derek Foreman
On 27/03/15 07:29 AM, Bruno Prémont wrote: > When weston fails to run while being launched by weston-launch it's > socketpair causes poll() to notify POLLIN|POLLHUP and lets recvmsg() > return 0. > > Properly cleanup and exit in that case instead of poll()ing in a tight > loop and leaving tty in g

[Patch] weston-launch: Fix tight poll/recvmsg loop on weston exit

2015-04-13 Thread Bruno Prémont
When weston fails to run while being launched by weston-launch it's socketpair causes poll() to notify POLLIN|POLLHUP and lets recvmsg() return 0. Properly cleanup and exit in that case instead of poll()ing in a tight loop and leaving tty in graphics mode if we get SIGKILLed as only way out. This