Enlightenment CVS committal

Author  : raster
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/modules/temperature


Modified Files:
        e_mod_main.c 


Log Message:


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

...

child processes that is.
:)

===================================================================
RCS file: /cvs/e/e17/apps/e/src/modules/temperature/e_mod_main.c,v
retrieving revision 1.92
retrieving revision 1.93
diff -u -3 -r1.92 -r1.93
--- e_mod_main.c        12 Feb 2008 06:14:27 -0000      1.92
+++ e_mod_main.c        10 Mar 2008 06:45:05 -0000      1.93
@@ -91,16 +91,7 @@
    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 @@
                             _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 @@
 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 @@
            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);
 }
 



-------------------------------------------------------------------------
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

Reply via email to