Enlightenment CVS committal Author : raster Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_actions.c e_exec.c Log Message: use e_exec in action for exec. debugging printfs tew. =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_actions.c,v retrieving revision 1.111 retrieving revision 1.112 diff -u -3 -r1.111 -r1.112 --- e_actions.c 21 Jan 2008 01:22:00 -0000 1.111 +++ e_actions.c 12 Mar 2008 07:31:13 -0000 1.112 @@ -1478,15 +1478,15 @@ /***************************************************************************/ ACT_FN_GO(exec) { - if (params) + E_Zone *zone; + + zone = _e_actions_zone_get(obj); + if (zone) { - Ecore_Exe *exe; - - e_util_library_path_strip(); - exe = ecore_exe_run(params, NULL); - e_util_library_path_restore(); - e_exehist_add("action/exec", params); - if (exe) ecore_exe_free(exe); + if (params) + { + e_exec(zone, NULL, params, NULL, "action/exec"); + } } } =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_exec.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -3 -r1.12 -r1.13 --- e_exec.c 20 Feb 2008 04:12:58 -0000 1.12 +++ e_exec.c 12 Mar 2008 07:31:13 -0000 1.13 @@ -266,7 +266,7 @@ { if (launch->launch_method) evas_stringshare_del(launch->launch_method); if (launch->zone) e_object_unref(E_OBJECT(launch->zone)); - free(launch); + free(launch); } return inst; } @@ -290,12 +290,17 @@ E_Exec_Instance *inst; ev = event; + printf("child exit...\n"); if (!ev->exe) return 1; + 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")))) return 1; inst = ecore_exe_data_get(ev->exe); + printf(" inst = %p\n", inst); if (!inst) return 1; + printf(" inst exec line -- '%s'\n", ecore_exe_cmd_get(inst->exe)); + /* /bin/sh uses this if cmd not found */ if ((ev->exited) && ((ev->exit_code == 127) || (ev->exit_code == 255))) @@ -331,14 +336,17 @@ ecore_exe_event_data_get(ev->exe, ECORE_EXE_PIPE_ERROR), ecore_exe_event_data_get(ev->exe, ECORE_EXE_PIPE_READ)); } - instances = evas_hash_find(e_exec_instances, inst->desktop->orig_path); - if (instances) + if (inst->desktop) { - instances = evas_list_remove(instances, inst); + instances = evas_hash_find(e_exec_instances, inst->desktop->orig_path); if (instances) - evas_hash_modify(e_exec_instances, inst->desktop->orig_path, instances); - else - e_exec_instances = evas_hash_del(e_exec_instances, inst->desktop->orig_path, NULL); + { + instances = evas_list_remove(instances, inst); + if (instances) + evas_hash_modify(e_exec_instances, inst->desktop->orig_path, instances); + else + e_exec_instances = evas_hash_del(e_exec_instances, inst->desktop->orig_path, NULL); + } } e_exec_start_pending = evas_list_remove(e_exec_start_pending, inst->desktop); if (inst->expire_timer) ecore_timer_del(inst->expire_timer); ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs