From 17bfa44f3c5bd87aefecbe9626d00bf6db9173e0 Mon Sep 17 00:00:00 2001 From: sakolish Date: Tue, 4 Dec 2007 15:39:28 +0000 Subject: [PATCH] Added check for "maxp" in site.tab - Line #84 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@123 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT-2.0/xCAT/PPC.pm | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/perl-xCAT-2.0/xCAT/PPC.pm b/perl-xCAT-2.0/xCAT/PPC.pm index d70d8310c..4f5a5ef31 100644 --- a/perl-xCAT-2.0/xCAT/PPC.pm +++ b/perl-xCAT-2.0/xCAT/PPC.pm @@ -78,6 +78,16 @@ sub process_command { my $callback = $request->{callback}; my $start; + ####################################### + # Get max processes to fork + ####################################### + my $sitetab = xCAT::Table->new('site'); + if ( defined( $sitetab )) { + my ($ent) = $sitetab->getAttribs({'key'=>'syspmaxp'},'value'); + if ( defined($ent) ) { + $maxp = $ent->{value}; + } + } if ( exists( $request->{verbose} )) { $start = Time::HiRes::gettimeofday(); } @@ -638,3 +648,4 @@ sub process_request { 1; +