From: Andre Noll Date: Sun, 31 Mar 2013 18:38:39 +0000 (+0000) Subject: i9e: Switch to the alternative post select method. X-Git-Tag: v0.4.13~39^2~6 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=742718c0f73774e4adf7bc5719b80bd5cdd24b26;hp=2e6b8f2ebf8131f906ab657764f9cc3100eee32b i9e: Switch to the alternative post select method. --- diff --git a/interactive.c b/interactive.c index bc3a7c1e..14186cd2 100644 --- a/interactive.c +++ b/interactive.c @@ -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";