1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Fix 52790

This commit is contained in:
Alain Magloire 2004-02-24 23:01:18 +00:00
parent 6904bc4b71
commit a26e6b67e2
2 changed files with 15 additions and 2 deletions

View file

@ -1,3 +1,10 @@
2004-02-24 Alain Magloire
Fix for PR 52790
For "Windows 98" fall back to Runtime.exec(..)
Spawner does not work on this platfrom
* utils/org/eclipse/cdt/utils/spawner.java
2004-02-24 Alain Magloire
Bug fix the binary runner thread could get interrupted

View file

@ -16,10 +16,16 @@ public class ProcessFactory {
private ProcessFactory() {
hasSpawner = false;
String OS = System.getProperty("os.name").toLowerCase();
runtime = Runtime.getRuntime();
try {
// Spawner does not work for Windows 98 fallback
if (OS != null && OS.equals("windows 98")) {
hasSpawner = false;
} else {
System.loadLibrary("spawner"); //$NON-NLS-1$
hasSpawner = true;
}
} catch (SecurityException e) {
//e.printStackTrace();
} catch (UnsatisfiedLinkError e) {