Commit 1947ca57 authored by Linus Torvalds's avatar Linus Torvalds

Fix reading /proc/<pid>/mem when parent dies.

We should not touch "self_exec_id" here. The parent changed,
not we.
parent b897d2ee
......@@ -529,7 +529,6 @@ static inline void reparent_thread(task_t *p, task_t *father, int traced)
/* We don't want people slaying init. */
if (p->exit_signal != -1)
p->exit_signal = SIGCHLD;
p->self_exec_id++;
if (p->pdeath_signal)
/* We already hold the tasklist_lock here. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment