http://gitweb.samba.org/?p=metze/samba/wip.git; a=shortlog; h=refs/heads/master4-double-fork

ronnie sahlberg ronniesahlberg at gmail.com
Wed Oct 27 02:37:05 MDT 2010


While not standard, some systems allow ways to modify the process name.
On such systems,  you could append a string to the process name to
allow a human to infer the lost ppid information.

Better than nothing perhaps?


On Wed, Oct 27, 2010 at 7:23 PM, Volker Lendecke
<Volker.Lendecke at sernet.de> wrote:
> On Wed, Oct 27, 2010 at 09:51:22AM +0200, Stefan (metze) Metzmacher wrote:
>> The goal was to avoid setting global signal handlers and to avoid
>> threads.
>>
>> The solution I found (with help from Tridge) was to use a 2 staged
>> fork() in order to avoid generating SIGCHLD from the child.
>> At the same time the child should never endup as zombie.
>
> Haven't looked at the code yet, but that is a *VERY* smart
> idea! The only downside I can see is that in ps output you
> might see tons of independent async helpers, the helper
> relationship is not obvious from the ppid anymore. But that
> is a minor issue that we can live with I think.
>
> Volker
>


More information about the samba-technical mailing list