diff options
| author | Michal Idziorek <m.i@gmx.at> | 2014-10-24 19:14:24 +0200 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2014-10-24 19:14:24 +0200 |
| commit | 56767e6d78b978e9daec13e5b096b6cebaf4b150 (patch) | |
| tree | 6f8e2c8e412534900128566cdda92c193fdba230 | |
| parent | 4b9be256c191b300dcbe0c75293967ec0701d5c3 (diff) | |
added hack to emulate end-of-file at stdin
| -rw-r--r-- | kernel/syscalls.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/syscalls.c b/kernel/syscalls.c index 7f3e6f1..031d419 100644 --- a/kernel/syscalls.c +++ b/kernel/syscalls.c @@ -32,6 +32,7 @@ int syscall_read(int file, char *buf, int len) if(ret) { *buf=c; + if(c=='X')return 0; return 1; } |
