diff options
-rw-r--r-- | fs/exec.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -630,10 +630,9 @@ static inline int de_thread(struct task_struct *tsk) | |||
630 | /* | 630 | /* |
631 | * Account for the thread group leader hanging around: | 631 | * Account for the thread group leader hanging around: |
632 | */ | 632 | */ |
633 | count = 2; | 633 | count = 1; |
634 | if (thread_group_leader(current)) | 634 | if (!thread_group_leader(current)) { |
635 | count = 1; | 635 | count = 2; |
636 | else { | ||
637 | /* | 636 | /* |
638 | * The SIGALRM timer survives the exec, but needs to point | 637 | * The SIGALRM timer survives the exec, but needs to point |
639 | * at us as the new group leader now. We have a race with | 638 | * at us as the new group leader now. We have a race with |