[freenet-cvs] r13083 - trunk/apps/new_installer/src

nextgens at freenetproject.org nextgens at freenetproject.org
Tue May 1 15:47:08 UTC 2007


Author: nextgens
Date: 2007-05-01 15:47:08 +0000 (Tue, 01 May 2007)
New Revision: 13083

Modified:
   trunk/apps/new_installer/src/BindTest.java
Log:
new_installer: bindTest : use different exit codes

Modified: trunk/apps/new_installer/src/BindTest.java
===================================================================
--- trunk/apps/new_installer/src/BindTest.java	2007-05-01 15:46:09 UTC (rev 13082)
+++ trunk/apps/new_installer/src/BindTest.java	2007-05-01 15:47:08 UTC (rev 13083)
@@ -20,7 +20,7 @@
 				ss.setReuseAddress(false);
 			ss.bind(new InetSocketAddress("127.0.0.1:", port.intValue()));
 			if(!ss.isBound())
-				System.exit(1);
+				System.exit(2);
 
 			ss.setSoTimeout(200);
 			ss.accept();
@@ -28,10 +28,10 @@
 		}catch (SocketException e){
 			System.exit(1);
 		}catch (IOException io){
-			System.exit(2);
+			System.exit(127);
 		}catch (ArrayIndexOutOfBoundsException aioobe){
 			System.err.println("Please give a port number as the first parameter!");
-			System.exit(-1);
+			System.exit(126);
 		}
 		System.exit(0);
 	}




More information about the cvs mailing list