From 99159d15defe57fb0baaf47f6adf5397edff6ac0 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 17 Jun 2008 17:51:26 +0000 Subject: [PATCH] -Prevent a discovery action within a plugin crash from kicking off exponential discovery git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1679 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/sbin/xcatd | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xCAT-server/sbin/xcatd b/xCAT-server/sbin/xcatd index 57722351c..d64fae069 100755 --- a/xCAT-server/sbin/xcatd +++ b/xCAT-server/sbin/xcatd @@ -298,6 +298,7 @@ if ($inet6support) { my $client; my $peerhost; my %packets; + my $actualpid=$$; until ($quit) { eval { while (1) { @@ -348,6 +349,9 @@ if ($inet6support) { if ($@) { syslog("local4|err","xcatd: possible BUG encountered by xCAT UDP service: ".$@); } + unless ($actualpid == $$) { #We should absolutely never be here, exponential growth from a plugin crash. + exit 1; + } } }