c***@CSIC.UMD.EDU
2005-09-29 14:56:26 UTC
So the way we are
implementing
background in this
project will ensure
when a thread is
spawned it will
always have a valid
owner reference.
However, say if you
killed the parent
process. Do you
update the owner
reference of its
children ? if you
set them to zero as
in p1, the children
of the process to be
killed will no
longer have a valid
owner reference,
hence when the
children die they
will not be able to
send the sigchild
signal to their
parent as the parent
wont exist
and if do you do not
set the owner to 0,
the parent will die
anyways but the
refcount of children
will remain 2 and
when they die they
will decrement their
refCount but again
the sigchild signal
to the parent will
fail. As a result
they will remain as
zombies in the
system.
Any help on this
would be
appreciated.
implementing
background in this
project will ensure
when a thread is
spawned it will
always have a valid
owner reference.
However, say if you
killed the parent
process. Do you
update the owner
reference of its
children ? if you
set them to zero as
in p1, the children
of the process to be
killed will no
longer have a valid
owner reference,
hence when the
children die they
will not be able to
send the sigchild
signal to their
parent as the parent
wont exist
and if do you do not
set the owner to 0,
the parent will die
anyways but the
refcount of children
will remain 2 and
when they die they
will decrement their
refCount but again
the sigchild signal
to the parent will
fail. As a result
they will remain as
zombies in the
system.
Any help on this
would be
appreciated.