|
@@ -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)
|