Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 30264
b: refs/heads/master
c: 281de33
h: refs/heads/master
v: v3
  • Loading branch information
Oleg Nesterov authored and Linus Torvalds committed Jun 26, 2006
1 parent e179547 commit 09883ee
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 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: aceecc041217b35df753d1ed6e25bd17c0c558d8
refs/heads/master: 281de339ceb822ca6c04d4373ecb9a45c1890ce4
9 changes: 8 additions & 1 deletion trunk/fs/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1371,17 +1371,24 @@ static void format_corename(char *corename, const char *pattern, long signr)
static void zap_process(struct task_struct *start, int *ptraced)
{
struct task_struct *t;
unsigned long flags;

spin_lock_irqsave(&start->sighand->siglock, flags);

t = start;
do {
if (t != current && t->mm) {
t->mm->core_waiters++;
force_sig_specific(SIGKILL, t);
sigaddset(&t->pending.signal, SIGKILL);
signal_wake_up(t, 1);

if (unlikely(t->ptrace) &&
unlikely(t->parent->mm == t->mm))
*ptraced = 1;
}
} while ((t = next_thread(t)) != start);

spin_unlock_irqrestore(&start->sighand->siglock, flags);
}

static void zap_threads (struct mm_struct *mm)
Expand Down

0 comments on commit 09883ee

Please sign in to comment.