aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/e_exec.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-12-07 13:28:17 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-12-07 13:28:17 +0000
commit82b4efa5e43b731f75a263b4ac6f257c4e59956e (patch)
tree9b0d756dda2f94225f1edd2a2b046fa61c67939a /src/bin/e_exec.c
parent607417832ee95a67f7a036978046c30da923d828 (diff)
downloadenlightenment-82b4efa5e43b731f75a263b4ac6f257c4e59956e.tar.gz
enlightenment-82b4efa5e43b731f75a263b4ac6f257c4e59956e.tar.xz
enlightenment-82b4efa5e43b731f75a263b4ac6f257c4e59956e.zip
in the event that an ecore_exe is not passed with the exit cb, check the pid list
SVN revision: 80450
Diffstat (limited to 'src/bin/e_exec.c')
-rw-r--r--src/bin/e_exec.c7
1 files changed, 6 insertions, 1 deletions
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"))))