From 494f76b0ab7f5b2c51ab7721a3f5c34750e0fef0 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Wed, 21 Sep 2016 16:42:31 -0500 Subject: [PATCH] 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 20d18acae..a09680e90 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);