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 )

Best regards.
--
                                                               Ivan Havlicek
*** 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 - [email protected]
Send requests to [email protected]
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

Reply via email to