Quellcode durchsuchen

made the onefork test finish by changing the >= 0 to != -1, but this is a bandaid fix. the core issue of our exitcode being DEADBEEF still exists

tarfeef101 vor 6 Jahren
Ursprung
Commit
b6ecc99a2f

BIN
kern/compile/ASST2/kernel


+ 1 - 1
kern/compile/ASST2/vers.c

@@ -1,3 +1,3 @@
 /* This file is automatically generated. Edits will be lost.*/
-const int buildversion = 58;
+const int buildversion = 59;
 const char buildconfig[] = "ASST2";

+ 1 - 1
kern/compile/ASST2/version

@@ -1 +1 @@
-58
+59

+ 1 - 1
kern/syscall/proc_syscalls.c

@@ -132,7 +132,7 @@ void sys__exit(int exitcode)
     kprintf("This is the exitcode: %d\n", p->parent->exitcode);
   }
   if (!(p->parent)) proc_destroy(p);
-  else if (p->parent->exitcode >= 0)
+  else if (p->parent->exitcode != -1)
   {
     kprintf("This is the exitcode: %d\n", p->parent->exitcode);
     proc_destroy(p);