projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac6cf1c
)
stdin: Fix a signed bug.
author
Andre Noll
<maan@systemlinux.org>
Tue, 29 Dec 2009 00:14:50 +0000
(
01:14
+0100)
committer
Andre Noll
<maan@systemlinux.org>
Tue, 29 Dec 2009 00:14:50 +0000
(
01:14
+0100)
We have to return a negative error code.
stdin.c
patch
|
blob
|
history
diff --git
a/stdin.c
b/stdin.c
index
c683b56
..
14201a9
100644
(file)
--- 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