Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 309751
b: refs/heads/master
c: 9bd0a07
h: refs/heads/master
i:
  309749: ba9a3f1
  309747: f4da702
  309743: 70e36d3
v: v3
  • Loading branch information
Anton Vorontsov authored and Linus Torvalds committed Jun 1, 2012
1 parent 9a14e18 commit ab126ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: af1be5a578a1ccc9961c55290f8c509a00a69036
refs/heads/master: 9bd0a077122a6b15069aab7a59c8f50f736fa1dd
3 changes: 3 additions & 0 deletions trunk/arch/um/kernel/reboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

#include "linux/sched.h"
#include "linux/spinlock.h"
#include "linux/slab.h"
#include "kern_util.h"
#include "os.h"
Expand All @@ -22,13 +23,15 @@ static void kill_off_processes(void)
struct task_struct *p;
int pid;

read_lock(&tasklist_lock);
for_each_process(p) {
if (p->mm == NULL)
continue;

pid = p->mm->context.id.u.pid;
os_kill_ptraced_process(pid, 1);
}
read_unlock(&tasklist_lock);
}
}

Expand Down

0 comments on commit ab126ea

Please sign in to comment.