Auteur: Rainer Weikusat Date: À: dng Sujet: Re: [DNG] Doing away with multi-threading in my project (netman)
Edward Bartolo <edbarx@???> writes:
> Hi,
>
> For the last days I have been struggling to reap zombies adopted by
> the frontend with only failures.
The frontend doesn't adopt zombies. Only init ever does that.
> I tried several methods using wait(-1), waidpid and trapping the
> signal when a child dies without ever succeeding to reap zombies. This
> means, I will stop and will leave the issue open to anyone who can
> find a working solution.
The 'zombie reaping' needs to happen in the parent process. This means
the backend has to care for any processes it starts via fork. And the
frontend has to care for the backend. You can get a tree view of
processes via ps f, eg,
ps fx
to show all processed running under you current uid.