derekf pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=494f76b0ab7f5b2c51ab7721a3f5c34750e0fef0

commit 494f76b0ab7f5b2c51ab7721a3f5c34750e0fef0
Author: Derek Foreman <der...@osg.samsung.com>
Date:   Wed Sep 21 16:42:31 2016 -0500

    Don't kill self during shutdown
    
    When Xwayland is running we end up with a client with the same pid
    as the compositor in the client list.  We need to avoid killing that
    client, as it will interrupt the proper shutdown procedure.
    
    fix T4439
---
 src/bin/e_client.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/bin/e_client.c b/src/bin/e_client.c
index 20d18ac..a09680e 100644
--- a/src/bin/e_client.c
+++ b/src/bin/e_client.c
@@ -4578,6 +4578,7 @@ e_client_act_kill_begin(E_Client *ec)
    if (!ec->zone) return;
    if (ec->internal) return;
    if (ec->lock_close) return;
+   if (ec->netwm.pid == getpid()) return;
    if ((ec->netwm.pid > 1) && (e_config->kill_process))
      {
         kill(ec->netwm.pid, SIGINT);

-- 


Reply via email to