From 0db3a569b697352119a4b8c0faf8345cd629db35 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 25 Mar 2008 20:18:14 +0000 Subject: [PATCH] -pping exits cleanly with empty or invalid noderange git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@887 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client-2.0/bin/pping | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xCAT-client-2.0/bin/pping b/xCAT-client-2.0/bin/pping index 1303daa33..0d464e178 100755 --- a/xCAT-client-2.0/bin/pping +++ b/xCAT-client-2.0/bin/pping @@ -76,6 +76,9 @@ if ($interface) { } #exec "fping ".join(' ',@nodes). " 2> /dev/null"; +unless (scalar(@nodes)) { + exit; +} open (FPING, "fping ".join(' ',@nodes). " 2> /dev/null|") or die("Cannot open fping pipe: $!"); while () { if ($_ =~ /is unreachable/) {