From 40af26f7f363ee8806874c470cd6338f4f934efa Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 29 Dec 2009 01:14:50 +0100 Subject: [PATCH] stdin: Fix a signed bug. We have to return a negative error code. --- stdin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdin.c b/stdin.c index c683b560..14201a9a 100644 --- a/stdin.c +++ b/stdin.c @@ -71,7 +71,7 @@ static void stdin_post_select(struct sched *s, struct task *t) return; ret = read(STDIN_FILENO, sit->buf + sit->loaded, sit->bufsize - sit->loaded); if (ret < 0) - t->error = ERRNO_TO_PARA_ERROR(errno); + t->error = -ERRNO_TO_PARA_ERROR(errno); else if (ret > 0) sit->loaded += ret; else -- 2.30.2