projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
32f366d
)
stdout.c: Brown paper bag fix
author
Andre
<maan@p133.(none)>
Sat, 8 Jul 2006 02:14:27 +0000
(
04:14
+0200)
committer
Andre
<maan@p133.(none)>
Sat, 8 Jul 2006 02:14:27 +0000
(
04:14
+0200)
stdout.c
patch
|
blob
|
history
diff --git
a/stdout.c
b/stdout.c
index
2e86fe9
..
1656bcc
100644
(file)
--- a/
stdout.c
+++ b/
stdout.c
@@
-82,6
+82,8
@@
void stdout_post_select(struct sched *s, struct task *t)
if (ret <= 0)
return;
*sot->loaded -= ret;
if (ret <= 0)
return;
*sot->loaded -= ret;
+ if (*sot->loaded)
+ memmove(sot->buf, sot->buf + ret, *sot->loaded);
t->ret = 1;
}
t->ret = 1;
}