[RFC] add a shutdown event

Uli Schlachter psychon at znc.in
Mon Mar 18 05:48:41 PDT 2013


Hi,

On 18.03.2013 00:30, Hardening wrote:
> On 17/03/2013 23:59, Sylvain BERTRAND wrote:
>> On Sun, Mar 17, 2013 at 11:32:21PM +0100, Hardening wrote:
>>> This patch adds a shutdow event so that clients can be notified
>>> when the compositor is about to exit (and potentially kill its
>>> child processes). 
>>> This patch is based on gh next.
>>
>> Is the socket disconnect not enough information for the clients?
>>
> As most of the time the compositor launched all the wayland clients,
> they may be killed before they discover the socket has disconnected.

I might be missing something obvious, but who kills the clients and via which
mechanism? The only thing that I can imagine would be SIGPIPE (if they try to
use their socket to weston) and that one can easily be avoided without a
shutdown event.

Cheers,
Uli

> It can be seen as a "hurry to cleanup before being killed" message.
> 
> Probably most of the client won't implement the callback but the one
> that care will be able to.
-- 
A learning experience is one of those things that say,
'You know that thing you just did? Don't do that.'
                     -- Douglas Adams


More information about the wayland-devel mailing list