Read/write file pipes in vala/glib
问题 I am using the glib vala function glib.process.spawn_async_with_pipes()(http://references.valadoc.org/#!api=glib-2.0/GLib.Process.spawn_async_with_pipes), which outputs some ints corresponding to stdin, stdout, and stderr. How would I use these pipes in Vala? 回答1: Modified example which also writes stuff to stdin: private static bool process_line (IOChannel channel, IOCondition condition, string stream_name) { if (condition == IOCondition.HUP) { stdout.printf ("%s: The fd has been closed.\n",