use new exe flag to make children die! die! die! kill the children... KILL!

...

child processes that is.
:)


SVN revision: 33975
This commit is contained in:
Carsten Haitzler 2008-03-10 06:45:05 +00:00
parent 930f53e765
commit 17d1bbe1a8
2 changed files with 14 additions and 16 deletions

View File

@ -218,7 +218,8 @@ _battery_config_updated(void)
battery_config->poll_interval);
battery_config->batget_exe = ecore_exe_pipe_run(buf,
ECORE_EXE_PIPE_READ |
ECORE_EXE_PIPE_READ_LINE_BUFFERED,
ECORE_EXE_PIPE_READ_LINE_BUFFERED |
ECORE_EXE_NOT_LEADER,
NULL);
}

View File

@ -91,16 +91,7 @@ _gc_init(E_Gadcon *gc, const char *name, const char *id, const char *style)
inst->o_temp = o;
inst->module = temperature_config->module;
inst->have_temp = -1;
snprintf(buf, sizeof(buf),
"%s/%s/tempget %i \"%s\" %i",
e_module_dir_get(temperature_config->module), MODULE_ARCH,
inst->sensor_type,
(inst->sensor_name != NULL ? inst->sensor_name : "-null-"),
inst->poll_interval);
inst->tempget_exe = ecore_exe_pipe_run(buf,
ECORE_EXE_PIPE_READ |
ECORE_EXE_PIPE_READ_LINE_BUFFERED,
inst);
inst->tempget_data_handler =
ecore_event_handler_add(ECORE_EXE_EVENT_DATA,
_temperature_cb_exe_data,
@ -110,6 +101,8 @@ _gc_init(E_Gadcon *gc, const char *name, const char *id, const char *style)
_temperature_cb_exe_del,
inst);
temperature_face_update_config(inst);
evas_object_event_callback_add(o, EVAS_CALLBACK_MOUSE_DOWN,
_temperature_face_cb_mouse_down, inst);
return gcc;
@ -390,10 +383,13 @@ void
temperature_face_update_config(Config_Face *inst)
{
char buf[PATH_MAX];
ecore_exe_terminate(inst->tempget_exe);
ecore_exe_free(inst->tempget_exe);
inst->tempget_exe = NULL;
if (inst->tempget_exe)
{
ecore_exe_terminate(inst->tempget_exe);
ecore_exe_free(inst->tempget_exe);
inst->tempget_exe = NULL;
}
snprintf(buf, sizeof(buf),
"%s/%s/tempget %i \"%s\" %i",
e_module_dir_get(temperature_config->module), MODULE_ARCH,
@ -402,7 +398,8 @@ temperature_face_update_config(Config_Face *inst)
inst->poll_interval);
inst->tempget_exe = ecore_exe_pipe_run(buf,
ECORE_EXE_PIPE_READ |
ECORE_EXE_PIPE_READ_LINE_BUFFERED,
ECORE_EXE_PIPE_READ_LINE_BUFFERED |
ECORE_EXE_NOT_LEADER,
inst);
}