diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2013-12-07 05:38:31 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2013-12-07 05:38:31 +0100 |
commit | 4fd55abb8e6dc11b257699cbd095fa5ef60e1ece (patch) | |
tree | b846d2a778ce003a32b07cefea4fe2ce38853e59 /sys/src/cmd/python/Tools/pynche/Main.py | |
parent | e2da074d284df467443612e7187855b7cf373097 (diff) |
kernel: fix pexit() Waitmsg memory leak.
when a process got forked with RFNOWAIT, its p->parent will still
point to the parent process, but its p->parentpid == 0.
this causes the "parent still alive" check in pexit to get confused
as it only checked p->pid == up->parentpid. this condition is *TRUE*
in the case of RFNOWAIT when the parent process is actually dead
(p->pid == 0) so we attached the wait structure to the dead parent
leaking the memory.
Diffstat (limited to 'sys/src/cmd/python/Tools/pynche/Main.py')
0 files changed, 0 insertions, 0 deletions