http://gitweb.samba.org/?p=metze/samba/wip.git; a=shortlog; h=refs/heads/master4-double-fork
Jeremy Allison
jra at samba.org
Wed Oct 27 15:58:12 MDT 2010
On Wed, Oct 27, 2010 at 09:51:22AM +0200, Stefan (metze) Metzmacher wrote:
> Hi,
>
> during the Storage Developer Conference 2010 I researched how we can
> implement helper processes in library code.
>
> 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.
>
> My first implementation is available here:
> http://gitweb.samba.org/?p=metze/samba/wip.git;a=shortlog;h=refs/heads/master4-double-fork
>
> It passes our autobuild tests, but I want to do some more testing before
> pushing
> it to master.
>
> It would be nice to get some comments.
That is a very nice piece of code. I'm impressed. Very clean Metze !
Jeremy.
More information about the samba-technical
mailing list