Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 105934
b: refs/heads/master
c: 15b9f36
h: refs/heads/master
v: v3
  • Loading branch information
Oleg Nesterov authored and Linus Torvalds committed Jul 25, 2008
1 parent 077c22f commit 4c35ded
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 246bb0b1deb29726990620d8b5e55ca29f331362
refs/heads/master: 15b9f360c0316c06d37c09b02d85565edbaf9dd3
5 changes: 3 additions & 2 deletions trunk/fs/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1574,11 +1574,12 @@ static inline int zap_threads(struct task_struct *tsk, struct mm_struct *mm,
for_each_process(g) {
if (g == tsk->group_leader)
continue;

if (g->flags & PF_KTHREAD)
continue;
p = g;
do {
if (p->mm) {
if (p->mm == mm) {
if (unlikely(p->mm == mm)) {
lock_task_sighand(p, &flags);
zap_process(p);
unlock_task_sighand(p, &flags);
Expand Down

0 comments on commit 4c35ded

Please sign in to comment.