projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd9d43f
)
fs/exec.c:de_thread: mt-exec should update ->real_start_time
author
Oleg Nesterov
<
[email protected]
>
Wed, 3 Jul 2013 22:08:35 +0000
(15:08 -0700)
committer
Linus Torvalds
<
[email protected]
>
Wed, 3 Jul 2013 23:08:03 +0000
(16:08 -0700)
924b42d5
("Use boot based time for process start time and boot time in
/proc") updated copy_process/do_task_stat but forgot about de_thread().
This breaks "ps axOT" if a sub-thread execs.
Note: I think that task->start_time should die.
Signed-off-by: Oleg Nesterov <
[email protected]
>
Cc: "Eric W. Biederman" <
[email protected]
>
Acked-by: John Stultz <
[email protected]
>
Cc: Tomas Janousek <
[email protected]
>
Cc: Tomas Smetana <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/exec.c
patch
|
blob
|
history
diff --git
a/fs/exec.c
b/fs/exec.c
index 396aec2dae90472ae302f7a05d5ae2b14598643f..9c73def87642fc8f36624b7fa525504541a59a04 100644
(file)
--- a/
fs/exec.c
+++ b/
fs/exec.c
@@
-932,6
+932,7
@@
static int de_thread(struct task_struct *tsk)
* also take its birthdate (always earlier than our own).
*/
tsk->start_time = leader->start_time;
+ tsk->real_start_time = leader->real_start_time;
BUG_ON(!same_thread_group(leader, tsk));
BUG_ON(has_group_leader_pid(tsk));