Changeset 436 for trunk/icedtea-web/plugin/icedteanp/os2
- Timestamp:
- Oct 15, 2014, 10:44:36 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/icedtea-web/plugin/icedteanp/os2/java/sun/applet/PluginMainBase.java
r431 r436 52 52 private static int inPipe = -1; 53 53 private static int outPipe = -1; 54 private static int debugPipe = -1; 54 55 55 56 static boolean checkArgs(String args[]) { … … 60 61 DeploymentConfiguration.move14AndOlderFilesTo15StructureCatched(); 61 62 if (JavaConsole.isEnabled()) { 62 if ((args.length < 3) || !new File(args[2]).exists()) {63 if ((args.length < 3) || (debugPipe = Integer.valueOf(args[2]).intValue()) < 0) { 63 64 OutputController.getLogger().log(OutputController.Level.ERROR_ALL, "Warning, although console is on, plugin debug connection do not exists. No plugin information will be displayed in console (only java ones)."); 64 } else {65 JavaConsole.getConsole().createPluginReader(new File(args[2]));66 65 } 67 66 } … … 81 80 fdAccess.set(outPipeFD, outPipe); 82 81 streamHandler = new PluginStreamHandler(new FileInputStream(inPipeFD), new FileOutputStream(outPipeFD)); 82 if (JavaConsole.isEnabled() && debugPipe != -1) { 83 FileDescriptor debugPipeFD = new FileDescriptor(); 84 fdAccess.set(debugPipeFD, debugPipe); 85 JavaConsole.getConsole().createPluginReader(new FileInputStream(debugPipeFD)); 86 } 83 87 PluginDebug.debug("Streams initialized"); 84 88 return streamHandler;
Note:
See TracChangeset
for help on using the changeset viewer.