From adf723db25195877d088dcff46563e31f33b9fbe Mon Sep 17 00:00:00 2001 From: daniceexi Date: Wed, 8 Jan 2014 07:42:35 -0500 Subject: [PATCH] fix the issue that xcatd hangs when reading the request which is formatted in one line like litefile request from statelte CN --- xCAT-server/sbin/xcatd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/sbin/xcatd b/xCAT-server/sbin/xcatd index f96fcf8b1..1538f0cdd 100755 --- a/xCAT-server/sbin/xcatd +++ b/xCAT-server/sbin/xcatd @@ -2014,7 +2014,7 @@ sub get_request { my $request = shift; if ($encode eq "xml") { my $line = ""; - while ($line !~ m/<\/xcatrequest>/) { + while ($request !~ m/<\/xcatrequest>/) { my $flags=fcntl($sock,F_GETFL,0); $flags |= O_NONBLOCK; #we want sysread to bail on us, select seems to be evil to us still.. fcntl($sock,F_SETFL,$flags);