summaryrefslogtreecommitdiff
path: root/finch/gntdebug.c
diff options
context:
space:
mode:
Diffstat (limited to 'finch/gntdebug.c')
-rw-r--r--finch/gntdebug.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/finch/gntdebug.c b/finch/gntdebug.c
index a9c38306ad..21b8b713cf 100644
--- a/finch/gntdebug.c
+++ b/finch/gntdebug.c
@@ -77,7 +77,10 @@ handle_fprintf_stderr(gboolean stop)
}
return;
}
- pipe(pipes);
+ if (pipe(pipes)) {
+ readhandle = -1;
+ return;
+ };
dup2(pipes[1], STDERR_FILENO);
stderrch = g_io_channel_unix_new(pipes[0]);