2003-06-16 Ognyan Kulev <ogi@fmi.uni-sofia.bg> * mgt.c (S_proc_dostop): Instead of suspending all threads except CONTTHREAD, first suspend all threads, and then resume CONTTHREAD. --- /home/ogi/cvs/hurd/proc/mgt.c 2002-05-08 12:24:52.000000000 +0300 +++ hurd/proc/mgt.c 2003-06-16 18:40:34.000000000 +0300 @@ -1,5 +1,5 @@ /* Process management - Copyright (C) 1992,93,94,95,96,99,2000,01,02 Free Software Foundation, Inc. + Copyright (C) 1992,93,94,95,96,99,2000,01,02,03 Free Software Foundation, Inc. This file is part of the GNU Hurd. @@ -350,12 +350,12 @@ S_proc_dostop (struct proc *p, } for (i = 0; i < nthreads; i++) { - if (threads[i] != contthread) - thread_suspend (threads[i]); + thread_suspend (threads[i]); mach_port_deallocate (mach_task_self (), threads[i]); } if (threads != threadbuf) munmap (threads, nthreads * sizeof (thread_t)); + thread_resume (contthread); err = task_resume (p->p_task); if (err) return err;