Il 17/04/2013 17:36, Hans de Goede ha scritto: >>> >> >> I'm not sure why all users of qemu_chr_fe_add_watch believe that the >> watch will be one-shot. This is definitely not what g_io_create_watch >> does... > > It is supposed to depend on the return value of the callback, if you > return False, then the source should be removed, in essence making > the watch one-shot, see: > http://www.gtk.org/api/2.6/glib/glib-The-Main-Event-Loop.html#GSourceFunc
Yeah, I found that later. :) Paolo