From 82b4efa5e43b731f75a263b4ac6f257c4e59956e Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 7 Dec 2012 13:28:17 +0000 Subject: [PATCH] in the event that an ecore_exe is not passed with the exit cb, check the pid list SVN revision: 80450 --- src/bin/e_exec.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/bin/e_exec.c b/src/bin/e_exec.c index 691ec6802..873252315 100644 --- a/src/bin/e_exec.c +++ b/src/bin/e_exec.c @@ -578,7 +578,12 @@ _e_exec_cb_exit(void *data __UNUSED__, int type __UNUSED__, void *event) E_Exec_Instance *inst; ev = event; - if (!ev->exe) return ECORE_CALLBACK_PASS_ON; + if (!ev->exe) + { + inst = e_exec_startup_id_pid_instance_find(-1, ev->pid); + if (!inst) return ECORE_CALLBACK_PASS_ON; + ev->exe = inst->exe; + } // if (ecore_exe_tag_get(ev->exe)) printf(" tag %s\n", ecore_exe_tag_get(ev->exe)); if (!(ecore_exe_tag_get(ev->exe) && (!strcmp(ecore_exe_tag_get(ev->exe), "E/exec"))))