On 8/14/19 10:15 AM, Carsten Haitzler (The Rasterman) wrote:

do you have .... ?

Here is my MWE :

#include <Elementary.h>
int nb=1;

Eina_Bool
 receive_process_messages(void *data , int type EINA_UNUSED, void *event)
{
        Ecore_Exe_Event_Data *dataFromProcess = (Ecore_Exe_Event_Data *)event;
        printf( "message nb %d\n%s\n",nb++,(char *) dataFromProcess->data);
        return ECORE_CALLBACK_PASS_ON ;
}

//******************************************************  main *******************************************************
    EAPI_MAIN int
elm_main(int argc, char **argv)
{        ecore_event_handler_add(ECORE_EXE_EVENT_DATA, receive_process_messages, NULL);
        ecore_exe_pipe_run("ps aux",
                    static_cast<Ecore_Exe_Flags>(
                            ECORE_EXE_PIPE_WRITE |
ECORE_EXE_PIPE_READ_LINE_BUFFERED |
                                    ECORE_EXE_PIPE_READ
                               ), NULL);
        elm_run();
        return 0;
}
ELM_MAIN()

It shows only 11 messages where I expect 250... !



_______________________________________________
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users

Reply via email to