readi: read EOF handling fix
authorAlan Cox <alan@linux.intel.com>
Thu, 4 Jun 2015 10:36:37 +0000 (11:36 +0100)
committerAlan Cox <alan@linux.intel.com>
Thu, 4 Jun 2015 10:36:37 +0000 (11:36 +0100)
Sign problems...

We can read from beyond end of file but must EOF (unlike write)

Kernel/process.c

index b9a4670..30576d4 100644 (file)
@@ -1,7 +1,7 @@
 #undef DEBUG                   /* turn this on to enable syscall tracing */
 #undef DEBUGHARDER             /* report calls to wakeup() that lead nowhere */
 #undef DEBUGREALLYHARD         /* turn on getproc dumping */
-#undef DEBUG_PREEMPT           /* debug pre-emption */
+#define DEBUG_PREEMPT          /* debug pre-emption */
 
 #include <kernel.h>
 #include <tty.h>