summaryrefslogtreecommitdiff
path: root/proc
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2001-08-14 19:09:13 +0000
committerMarcus Brinkmann <marcus@gnu.org>2001-08-14 19:09:13 +0000
commitd77023eb04c94c402e75bb328103311a4b71c7cc (patch)
tree57ba03ea6427bef6d2b8eccec430d0fd35f82a63 /proc
parent9079a13b7fbd2b53310919c7e72a0ab34d57b610 (diff)
2001-08-14 Marcus Brinkmann <marcus@gnu.org>
* mgt.c (S_proc_dostop): If task_threads fails, resume the suspended task.
Diffstat (limited to 'proc')
-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)