Skip to content

Commit

Permalink
fixed control_fifo() to return a correct status
Browse files Browse the repository at this point in the history
  • Loading branch information
robm committed May 15, 2009
1 parent 5d498b3 commit 4cb5e65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions uzbl.c
Expand Up @@ -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)
Expand All @@ -1015,7 +1015,7 @@ control_fifo(GIOChannel *gio, GIOCondition condition) {
parse_cmd_line(ctl_line);
g_free(ctl_line);

return;
return TRUE;
}

static gchar*
Expand Down
2 changes: 1 addition & 1 deletion uzbl.h
Expand Up @@ -264,7 +264,7 @@ var_is(const char *x, const char *y);
static gchar*
set_useragent(gchar *val);

static void
static gboolean
control_fifo(GIOChannel *gio, GIOCondition condition);

static gchar*
Expand Down

0 comments on commit 4cb5e65

Please sign in to comment.