|
From: Jeff D. <jd...@ka...> - 2000-12-22 02:23:39
|
Try the patch below. I think this also fixes the swapoff crash.
Jeff
--- ../cvs/linux/arch/um/kernel/process_kern.c Tue Dec 5 11:00:44 2000
+++ arch/um/kernel/process_kern.c Thu Dec 21 21:16:42 2000
@@ -154,9 +154,8 @@
extern_pid = clone_and_wait(new_thread_proc, task, (void *) sp,
CLONE_FILES | SIGCHLD);
if(task->thread.extern_pid == -1) panic("task didn't set its pid");
- atomic_inc(&init_mm.mm_count);
- task->mm = &init_mm;
- task->active_mm = &init_mm;
+ task->mm = NULL;
+ task->active_mm = NULL;
#ifdef __SMP__
if(cpu != -1){
cpu_tasks[cpu].pid = extern_pid;
|