In the GTK version the input events were not set up to trigger when
the pipe broke, which led to delayed detection of crashing engines.
channel = g_io_channel_unix_new(is->fd);
g_io_channel_set_close_on_unref (channel, TRUE);
- is->sid = g_io_add_watch(channel, G_IO_IN,(GIOFunc) DoInputCallback, is);
+ is->sid = g_io_add_watch(channel, G_IO_IN|G_IO_HUP,(GIOFunc) DoInputCallback, is);
is->closure = closure;
return (InputSourceRef) is;