mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-30 19:02:27 +00:00 
			
		
		
		
	-Don't add to IO::Select object until the socket is confirmed to have been created normally
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1065 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -263,13 +263,13 @@ if ($inet6support) { | ||||
|                                      Domain => AF_INET); | ||||
| } | ||||
|  | ||||
|   $select->add($socket); | ||||
|   openlog("xCAT UDP",'','local4'); | ||||
|   unless ($socket) { | ||||
|     syslog("err","xCAT UDP service unable to open port $port: $!"); | ||||
|     closelog(); | ||||
|     die "Unable to start UDP on $port"; | ||||
|   } | ||||
|   $select->add($socket); | ||||
|   my $data; | ||||
|   my $part; | ||||
|   my $sport; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user