[libinline-java-perl] 166/398: Added closing of stdin/out in Java
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 2a99c8d1d8ef4d7b93535dbe67ce12c303ee6400
Author: patrick_leb <>
Date: Mon Feb 4 02:44:56 2002 +0000
Added closing of stdin/out in Java
---
Java/Init.pm | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/Java/Init.pm b/Java/Init.pm
index 61178d2..edb99c1 100644
--- a/Java/Init.pm
+++ b/Java/Init.pm
@@ -127,6 +127,15 @@ 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