X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=interactive.c;h=14186cd29026ba60fa9dd572e65b7d55ffc66256;hp=44db6c58fda6b4080c0874725c7a9bd4b9f6fbe4;hb=742718c0f73774e4adf7bc5719b80bd5cdd24b26;hpb=e541d7bea7febed8cb9f8a65ae4bd9bdd1b5c8a0 diff --git a/interactive.c b/interactive.c index 44db6c58..14186cd2 100644 --- a/interactive.c +++ b/interactive.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011-2012 Andre Noll + * Copyright (C) 2011-2013 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -307,7 +307,7 @@ static void i9e_line_handler(char *line) } } -static void i9e_post_select(__a_unused struct sched *s, struct task *t) +static int i9e_post_select(__a_unused struct sched *s, __a_unused struct task *t) { int ret; struct i9e_client_info *ici = i9ep->ici; @@ -361,7 +361,7 @@ rm_btrn: wipe_bottom_line(); out: i9ep->caught_sigint = false; - t->error = ret; + return ret; } static void i9e_pre_select(struct sched *s, __a_unused struct task *t) @@ -447,7 +447,8 @@ int i9e_open(struct i9e_client_info *ici, struct sched *s) if (ret < 0) return ret; i9ep->task.pre_select = i9e_pre_select; - i9ep->task.post_select = i9e_post_select; + i9ep->task.new_post_select = i9e_post_select; + i9ep->task.post_select = NULL; sprintf(i9ep->task.status, "i9e"); register_task(s, &i9ep->task); rl_readline_name = "para_i9e";