mirror of
https://github.com/processing/processing4.git
synced 2026-02-09 16:49:21 +01:00
linux tweak, and improving the speed of siphoning System.out
This commit is contained in:
@@ -56,9 +56,14 @@ class PdeMessageSiphon implements Runnable {
|
||||
//System.err.println(currentLine);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
System.err.println("PdeMessageSiphon err " + e);
|
||||
e.printStackTrace();
|
||||
//thread.stop(); // implicit (and no longer supported)
|
||||
// on linux, a "bad file descriptor" message comes up when
|
||||
// closing an applet that's being run externally.
|
||||
// use this to cause that to fail silently since not important
|
||||
if ((PdeBase.platform != PdeBase.LINUX) ||
|
||||
(e.getMessage().indexOf("Bad file descriptor") == -1)) {
|
||||
System.err.println("PdeMessageSiphon err " + e);
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
//System.err.println("siphon thread exiting");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user