On 16/11/2012 20:31, Dimitar Zhekov wrote:
>This confused me. Are you saying you use native Windows functions in
>combination with g_spawn? I thought only g_io_add_watch could be used.
g_spawn_async_with_pipes() returns libc/msvcrt fd-s. You can use them
to create channels, or directly.
Anonymous win~1 pipe fd-s are handled by giowin like regular fd-s
(G_IO_WIN32_FILE_DESC), which causes problems, and I wanted a single
g_source with the order of stdin/out/err operations order under my
control. So calling read() and write() turned out to be easier. giowin
uses them at the lowest level too.
OK, thanks for the info.
_______________________________________________
Devel mailing list
Devel@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/devel