eliminated dependency between UnixRuntime and Interpreter
[nestedvm.git] / src / org / xwt / mips / UnixRuntime.java
index 8572ab9..e2bc732 100644 (file)
@@ -60,6 +60,7 @@ public abstract class UnixRuntime extends Runtime {
         }
     }
     
+    // NOTE: getDisplayName() is a Java2 function
     private static String posixTZ() {
         StringBuffer sb = new StringBuffer();
         TimeZone zone = TimeZone.getDefault();
@@ -208,7 +209,7 @@ public abstract class UnixRuntime extends Runtime {
             }
             if((options&WNOHANG)!=0) return 0;
             synchronized(waitNotification) {
-                try { waitNotification.wait(); } catch(InterruptedException e) { throw new Error(e); }
+                try { waitNotification.wait(); } catch(InterruptedException e) { /* ignore */ }
             }
         }
     }
@@ -391,6 +392,7 @@ public abstract class UnixRuntime extends Runtime {
         }
     }
         
+    /*
     public static void main(String[] args) throws Exception {
         UnixRuntime rt = new Interpreter();
         rt.cwd = getSystemProperty("user.dir");
@@ -400,7 +402,7 @@ public abstract class UnixRuntime extends Runtime {
             System.out.println("[" + rt.cleanupPath(line) + "]");
         }
     }
-    
+    */
     
     private static boolean needsCleanup(String path) {
         if(path.indexOf("//") != -1) return true;