aboutsummaryrefslogtreecommitdiffhomepage
path: root/uzbl.c
diff options
context:
space:
mode:
authorGravatar Robert Manea <gotmor@gmail.com>2009-05-15 18:23:20 +0200
committerGravatar Robert Manea <gotmor@gmail.com>2009-05-15 18:23:20 +0200
commit4cb5e65f51d7d4c0ffb34ce44511297426ae41e7 (patch)
tree8fb2d1364264e8f0cf64b01fec72aa73cad820f8 /uzbl.c
parent5d498b3df714fa31230d682456e69938614e6074 (diff)
fixed control_fifo() to return a correct status
Diffstat (limited to 'uzbl.c')
-rw-r--r--uzbl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/uzbl.c b/uzbl.c
index 7c9187d..f44db2e 100644
--- a/uzbl.c
+++ b/uzbl.c
@@ -995,14 +995,14 @@ build_stream_name(int type, const gchar* dir) {
return str;
}
-static void
+static gboolean
control_fifo(GIOChannel *gio, GIOCondition condition) {
printf("triggered\n");
gchar *ctl_line;
GIOStatus ret;
GError *err = NULL;
- if (condition & G_IO_HUP)
+ if (condition & G_IO_HUP)
g_error ("Fifo: Read end of pipe died!\n");
if(!gio)
@@ -1015,7 +1015,7 @@ control_fifo(GIOChannel *gio, GIOCondition condition) {
parse_cmd_line(ctl_line);
g_free(ctl_line);
- return;
+ return TRUE;
}
static gchar*