mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-04 05:12:30 +00:00 
			
		
		
		
	Correct syntax problems in invoking fcntl calls
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12427 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		@@ -224,8 +224,7 @@ if (ref($request) eq 'HASH') { # the request is an array, not pure XML
 | 
			
		||||
  my $massresponse="<massresponse>";
 | 
			
		||||
  my $nextcoalescetime=time()+1;
 | 
			
		||||
  my $coalescenow=0;
 | 
			
		||||
  my $flags;
 | 
			
		||||
  fcntl($client,F_GETFL,$flags);
 | 
			
		||||
  my $flags=fcntl($client,F_GETFL,0);
 | 
			
		||||
  $flags |= O_NONBLOCK; #select can be a bit.. fickle, make sysread work more easily...
 | 
			
		||||
  fcntl($client,F_SETFL,$flags);
 | 
			
		||||
  my $clientsel = new IO::Select;
 | 
			
		||||
 
 | 
			
		||||
@@ -1688,8 +1688,7 @@ sub service_connection {
 | 
			
		||||
    my $request;
 | 
			
		||||
    my $req=undef;
 | 
			
		||||
    my $line;
 | 
			
		||||
    my $flags;
 | 
			
		||||
    fcntl($sock,F_GETFL,$flags);
 | 
			
		||||
    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);
 | 
			
		||||
    my $clientsel = new IO::Select;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user