Re: [Vala] multithreading -> weird behaviour on win(msys) and macOS



 
   > On Tuesday, 12 March 2019, 22:03:28 GMT, Wolfgang Mauer <wolfgang mauer kabelmail de> wrote:  
Well i found the "problem", it wasn't my code but i tried the example 
from the valadoc 
"https://valadoc.org/glib-2.0/GLib.Process.spawn_async_with_pipes.html";

Just let it compile himself
    string[] spawn_args = {"valac", "--pkg", "glib-2.0", 
"GLib.Process.spawn_async_with_pipes.vala"};
and "voilà" on win and mac the output is like this, never ending....
 
stderr: (NULL)stdout: (NULL)stderr: (NULL)stdout: (NULL)stderr: 

Firstly, use GLib.Subprocess. It is a newer and easier API.
As far as the bug goes it 
is:https://gitlab.gnome.org/GNOME/vala/issues/664https://gitlab.gnome.org/GNOME/glib/issues/1512
Really that needs someone with access to Mac and Windows 
to write a relevant test case in C for g_spawn_async_with_pipesAll I can find is 
https://gitlab.gnome.org/GNOME/glib/blob/master/tests/spawn-test.c






 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]