summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--proc/ChangeLog5
-rw-r--r--proc/mgt.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/proc/ChangeLog b/proc/ChangeLog
index 3ace0678..5d9f7054 100644
--- a/proc/ChangeLog
+++ b/proc/ChangeLog
@@ -1,3 +1,8 @@
+2001-08-14 Marcus Brinkmann <marcus@gnu.org>
+
+ * mgt.c (S_proc_dostop): If task_threads fails, resume the
+ suspended task.
+
2001-08-06 Roland McGrath <roland@frob.com>
* wait.c (S_proc_wait: reap): Set *PID_STATUS to CHILD->p_pid.
diff --git a/proc/mgt.c b/proc/mgt.c
index 807a2d5b..1689cb7b 100644
--- a/proc/mgt.c
+++ b/proc/mgt.c
@@ -344,7 +344,10 @@ S_proc_dostop (struct proc *p,
return err;
err = task_threads (p->p_task, &threads, &nthreads);
if (err)
- return err;
+ {
+ task_resume (p->p_task);
+ return err;
+ }
for (i = 0; i < nthreads; i++)
{
if (threads[i] != contthread)