gchar *buffer = NULL;
GError *error = NULL;
gsize termpos;
-
+ /* FIXME: it should be possible to terminate the command with a null character */
+ g_io_channel_set_line_term(source, "<gq_end_of_command>\n", -1);
while ((status = g_io_channel_read_line(source, &buffer, NULL, &termpos, &error)) == G_IO_STATUS_NORMAL)
{
if (buffer)
channel = g_io_channel_unix_new(rc->fd);
g_io_channel_write_chars(channel, text, -1, NULL, &error);
- g_io_channel_write_chars(channel, "\n", -1, NULL, &error);
+ g_io_channel_write_chars(channel, "<gq_end_of_command>\n", -1, NULL, &error);
g_io_channel_flush(channel, &error);
if (error)