From 9aa6acc27e8f5e0c21a7ace4f6287b0b9715cbf9 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Sat, 16 Aug 2003 22:19:37 +0000 Subject: 2003-08-17 Marcus Brinkmann * mgt.c (S_proc_dostop): Revert last change. --- proc/mgt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'proc/mgt.c') diff --git a/proc/mgt.c b/proc/mgt.c index 2fcefa86..5373d101 100644 --- a/proc/mgt.c +++ b/proc/mgt.c @@ -1,5 +1,5 @@ /* Process management - Copyright (C) 1992,93,94,95,96,99,2000,01,02,03 Free Software Foundation, Inc. + Copyright (C) 1992,93,94,95,96,99,2000,01,02 Free Software Foundation, Inc. This file is part of the GNU Hurd. @@ -353,12 +353,12 @@ S_proc_dostop (struct proc *p, we suspend all threads and then resume CONTTHREAD. */ for (i = 0; i < nthreads; i++) { - thread_suspend (threads[i]); + if (threads[i] != contthread) + 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; -- cgit v1.2.3