Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 309753
b: refs/heads/master
c: 2c922c5
h: refs/heads/master
i:
  309751: ab126ea
v: v3
  • Loading branch information
Anton Vorontsov authored and Linus Torvalds committed Jun 1, 2012
1 parent 817bf07 commit 1ffc7b8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 137d1a26c842a384c98dd2a6a605014fddf5c777
refs/heads/master: 2c922c51e6924298f8271d75732964f1ffdecaf2
13 changes: 7 additions & 6 deletions trunk/arch/um/kernel/reboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include "linux/sched.h"
#include "linux/spinlock.h"
#include "linux/slab.h"
#include "linux/oom.h"
#include "kern_util.h"
#include "os.h"
#include "skas.h"
Expand All @@ -25,13 +26,13 @@ static void kill_off_processes(void)

read_lock(&tasklist_lock);
for_each_process(p) {
task_lock(p);
if (!p->mm) {
task_unlock(p);
struct task_struct *t;

t = find_lock_task_mm(p);
if (!t)
continue;
}
pid = p->mm->context.id.u.pid;
task_unlock(p);
pid = t->mm->context.id.u.pid;
task_unlock(t);
os_kill_ptraced_process(pid, 1);
}
read_unlock(&tasklist_lock);
Expand Down

0 comments on commit 1ffc7b8

Please sign in to comment.