History

[PATCH] little de_thread() cleanup

Trivial, saves one 'if' branch in de_thread().

Oleg Nesterov committed 21 years ago

Commit 9e4e23b1 parent 833d3041 file · +3 −4Browse files

Unified · Split

fs/exec.c+3−4
@@ -630,10 +630,9 @@ static inline int de_thread(struct task_struct *tsk) · 629 unmodified lines
630630 /*
631631 * Account for the thread group leader hanging around:
632632 */
633− count = 2;
634− if (thread_group_leader(current))
635− count = 1;
636− else {
633+ count = 1;
634+ if (!thread_group_leader(current)) {
635+ count = 2;
637636 /*
638637 * The SIGALRM timer survives the exec, but needs to point
639638 * at us as the new group leader now. We have a race with

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t