diff options
author | Marcus Brinkmann <marcus@gnu.org> | 2003-08-16 22:19:37 +0000 |
---|---|---|
committer | Marcus Brinkmann <marcus@gnu.org> | 2003-08-16 22:19:37 +0000 |
commit | 9aa6acc27e8f5e0c21a7ace4f6287b0b9715cbf9 (patch) | |
tree | 0dceb606d5d1e8abefe71a09d0f670acd2bf7597 | |
parent | e6e4498d2adf8009218d6ed5bf2dc437fc981983 (diff) |
2003-08-17 Marcus Brinkmann <marcus@gnu.org>
* mgt.c (S_proc_dostop): Revert last change.
-rw-r--r-- | proc/ChangeLog | 4 | ||||
-rw-r--r-- | proc/mgt.c | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/proc/ChangeLog b/proc/ChangeLog index 372dabbf..0c872093 100644 --- a/proc/ChangeLog +++ b/proc/ChangeLog @@ -1,3 +1,7 @@ +2003-08-17 Marcus Brinkmann <marcus@gnu.org> + + * mgt.c (S_proc_dostop): Revert last change. + 2003-06-16 Ognyan Kulev <ogi@fmi.uni-sofia.bg> * mgt.c (S_proc_dostop): Instead of suspending all threads except @@ -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; |