mirror of
				https://bitbucket.org/jsuto/piler.git
				synced 2025-11-04 09:52:26 +01:00 
			
		
		
		
	listener socket fix
Change-Id: I6a81c4ab345b072b2bf6e3b1a3b914a6da08a49e Signed-off-by: SJ <sj@acts.hu>
This commit is contained in:
		@@ -358,6 +358,10 @@ int main(int argc, char **argv){
 | 
				
			|||||||
      exit(1);
 | 
					      exit(1);
 | 
				
			||||||
   }
 | 
					   }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					   if(make_socket_non_blocking(listenerfd) == -1){
 | 
				
			||||||
 | 
					      fatal("make_socket_non_blocking()");
 | 
				
			||||||
 | 
					   }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   if(listen(listenerfd, cfg.backlog) == -1){
 | 
					   if(listen(listenerfd, cfg.backlog) == -1){
 | 
				
			||||||
      fatal("ERROR: listen()");
 | 
					      fatal("ERROR: listen()");
 | 
				
			||||||
   }
 | 
					   }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user