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
This commit is contained in:
Derek Foreman 2016-09-21 16:42:31 -05:00 committed by Mike Blumenkrantz
parent c60d52a261
commit fd78d05100
1 changed files with 1 additions and 0 deletions

View File

@ -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);