From: Doyoun Kang Date: Wed, 6 Apr 2022 09:56:59 +0000 (+0900) Subject: e_mod_processmgr: do not send E_PROCESS_ACT_LAUNCH signal if the pid is invalid X-Git-Tag: submit/tizen/20220406.102927~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7baafebaceb82b087c4d7a7b25c3e6850ea51a52;p=platform%2Fcore%2Fuifw%2Fe-mod-tizen-processmgr.git e_mod_processmgr: do not send E_PROCESS_ACT_LAUNCH signal if the pid is invalid Change-Id: I2e59fd1f08eef261de7f753abe47c82cd9f69261 --- diff --git a/src/e_mod_processmgr.c b/src/e_mod_processmgr.c index 5cd045f..cb63215 100644 --- a/src/e_mod_processmgr.c +++ b/src/e_mod_processmgr.c @@ -301,11 +301,15 @@ static void _e_processmgr_cb_launch_done(void *data, Evas_Object *obj, const char *signal, const char *source) { E_Client *ec; + int pid = -1; ec = data; if (!ec) return; - _e_processmgr_process_action_send(ec->netwm.pid, E_PROCESS_ACT_LAUNCH); + pid = _process_id_get(ec); + if (pid <= 0) return; + + _e_processmgr_process_action_send(pid, E_PROCESS_ACT_LAUNCH); } static Eina_Bool