From 56767e6d78b978e9daec13e5b096b6cebaf4b150 Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Fri, 24 Oct 2014 19:14:24 +0200 Subject: added hack to emulate end-of-file at stdin --- kernel/syscalls.c | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit v1.2.3