I forgot something :) System: 4.7-RELEASE-p3 FreeBSD Java: java version "1.4.1_01" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01) Java HotSpot(TM) Client VM (build 1.4.1_01-b01, mixed mode)
---------- Forwarded Message ---------- Subject: FreeBSD Java bug? Date: Mon, 3 Mar 2003 19:39:52 +0200 From: Michael Spector <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Java code: ~~~~~~~~~~ import java.lang.*; public class Test { public static void main(String argv[]) { try { Runtime rt = Runtime.getRuntime(); Process p = rt.exec("./a.out"); System.out.println("Exit code: " + p.waitFor()); } catch(Exception e) { e.printStackTrace(); } } } C code: ~~~~~~~ #include <stdio.h> int main() { exit(7); } I'm executing: ~~~~~~~~~~~ 19:31 [EMAIL PROTECTED] [michael]--> java Test Exit code: 0 Why exit code is not 7 ? -- ---------------------------------------- With best regards, Michael Spector Tel: 972-(0)54840565 To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message