]> Zhao Yanbai Git Server - minix.git/commitdiff
vfs: don't SUSPEND for unknown calls
authorBen Gras <ben@minix3.org>
Sat, 2 Jul 2011 15:15:20 +0000 (17:15 +0200)
committerBen Gras <ben@minix3.org>
Sat, 2 Jul 2011 15:19:13 +0000 (17:19 +0200)
. returning ENOSYS helps for implementing
  new calls with forwards compatability

servers/vfs/main.c

index 5ee8ec302c86b76b0c036b4aa11b058b09b00b11..789b1956362a02dd721091ad476aa37134f89d11 100644 (file)
@@ -169,7 +169,7 @@ PUBLIC int main(void)
              default:
                /* Call the internal function that does the work. */
                if (call_nr < 0 || call_nr >= NCALLS) { 
-                       error = SUSPEND;
+                       error = ENOSYS;
                        /* Not supposed to happen. */
                        printf("VFS: illegal %d system call by %d\n",
                                call_nr, who_e);