Browse Source

commented out dupe pe code from proc.c that was done in sys_exit

tarfeef101 6 years ago
parent
commit
10cc744117
4 changed files with 8 additions and 8 deletions
  1. BIN
      kern/compile/ASST2/kernel
  2. 1 1
      kern/compile/ASST2/vers.c
  3. 1 1
      kern/compile/ASST2/version
  4. 6 6
      kern/proc/proc.c

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 = 62;
+const int buildversion = 63;
 const char buildconfig[] = "ASST2";

+ 1 - 1
kern/compile/ASST2/version

@@ -1 +1 @@
-62
+63

+ 6 - 6
kern/proc/proc.c

@@ -214,15 +214,15 @@ void proc_destroy(struct proc * proc)
 	 * incorrect to destroy it.)
 	 */
 	/* VFS fields */
-	if (proc->p_cwd)
+/*	if (proc->p_cwd)
 	{
 		VOP_DECREF(proc->p_cwd);
 		proc->p_cwd = NULL;
-	}
+	}*/
 
-#ifndef UW  // in the UW version, space destruction occurs in sys_exit, not here
+/*#ifndef UW  // in the UW version, space destruction occurs in sys_exit, not here
 	if (proc->p_addrspace)
-	{
+	{*/
 		/*
 		 * In case p is the currently running process (which
 		 * it might be in some circumstances, or if this code
@@ -233,13 +233,13 @@ void proc_destroy(struct proc * proc)
 		 * half-destroyed address space. This tends to be
 		 * messily fatal.
 		 */
-		struct addrspace * as;
+/*		struct addrspace * as;
 
 		as_deactivate();
 		as = curproc_setas(NULL);
 		as_destroy(as);
 	}
-#endif // UW
+#endif  UW */
 /*
 #ifdef UW
 	if (proc->console)