On Thu, Apr 07, 2011 at 04:37:54PM +0200, Ivan Havlicek wrote:
> Hi,
>
> When I use ldirector with fork enabled in /etc/ldirectord.conf :
> fork=yes
>
> the function check_dns needs to ignore the SIGCHILD otherwise
> ldirectord try to spawn a new child infinitely..
>
> There's my patch to make it work :
> patch -p1 ldirectord < ignore_sig_child.patch
>
> ( ldirectord take from
> http://horms.net/projects/ldirectord/download/ldirectord-latest )
Thanks Ivan,
nice catch! I guess we also need this change in all the other
places that we use eval, or specifically in check_http().
> *** ldirectord 2011-04-07 14:22:07.000000000 +0200
> --- ldirectord 2011-04-07 14:21:53.000000000 +0200
> ***************
> *** 3539,3544 ****
> --- 3539,3546 ----
> # which throw a fatal exception if they fail
> # Needless to say, this is completely stupid.
> local $SIG{'__DIE__'} = "DEFAULT";
> + # When fork=yes we need to ignore the child death :
> + local $SIG{'CHLD'} = "IGNORE";
> require Net::DNS;
> }
> $res = new Net::DNS::Resolver;
> _______________________________________________
> Please read the documentation before posting - it's available at:
> http://www.linuxvirtualserver.org/
>
> LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
> Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/
LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://lists.graemef.net/mailman/listinfo/lvs-users
|