[libinline-java-perl] 169/398: Fixed close STDIN/out error with JNI

Jonas Smedegaard dr at jones.dk
Thu Feb 26 11:43:00 UTC 2015


This is an automated email from the git hooks/post-receive script.

js pushed a commit to tag 0.55
in repository libinline-java-perl.

commit 42272579cbad2a66734cbb1f8a0821a236422a6b
Author: patrick_leb <>
Date:   Mon Feb 4 17:26:21 2002 +0000

    Fixed close STDIN/out error with JNI
    
     ----------------------------------------------------------------------
---
 Java/Init.pm | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/Java/Init.pm b/Java/Init.pm
index edb99c1..70d3fe5 100644
--- a/Java/Init.pm
+++ b/Java/Init.pm
@@ -87,6 +87,15 @@ public class InlineJavaServer {
 	InlineJavaServer(String[] argv) {
 		init() ;
 
+		try {
+			System.out.close() ;
+			System.in.close() ;
+		}
+		catch (IOException e){
+			System.err.println("IO error: " + e.getMessage()) ;
+			System.err.flush() ;
+		}
+
 		debug = new Boolean(argv[0]).booleanValue() ;
 		port = Integer.parseInt(argv[1]) ;
 		shared_jvm = new Boolean(argv[2]).booleanValue() ;
@@ -127,15 +136,6 @@ public class InlineJavaServer {
 
 	private void init(){
 		instance = this ;
-
-		try {
-			System.out.close() ;
-			System.in.close() ;
-		}
-		catch (IOException e){
-			System.err.println("IO error: " + e.getMessage()) ;
-			System.err.flush() ;
-		}
 	}
 
 	

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libinline-java-perl.git



More information about the Pkg-perl-cvs-commits mailing list