glib iochannel fixes from exg.

git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5137 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Alexander Færøy 2010-04-03 20:04:15 +00:00 committed by ahf
commit df1d7a7814
6 changed files with 39 additions and 34 deletions

View file

@ -304,9 +304,9 @@ static void process_exec(PROCESS_REC *rec, const char *cmd)
if (rec->pid != 0) {
/* parent process */
GIOChannel *outio = g_io_channel_unix_new(in[1]);
GIOChannel *outio = g_io_channel_new(in[1]);
rec->in = g_io_channel_unix_new(out[0]);
rec->in = g_io_channel_new(out[0]);
rec->out = net_sendbuffer_create(outio, 0);
close(out[1]);