From owner-freebsd-java Mon Sep 24 1:24:48 2001 Delivered-To: freebsd-java@freebsd.org Received: from rj.sgi.com (rj.SGI.COM [204.94.215.100]) by hub.freebsd.org (Postfix) with ESMTP id CAEC237B40A for ; Mon, 24 Sep 2001 01:24:44 -0700 (PDT) Received: from yog-sothoth.sgi.com (eugate.neu.sgi.com [144.253.131.5]) by rj.sgi.com (8.11.4/8.11.4/linux-outbound_gateway-1.0) with ESMTP id f8O8Ohj29264 for <@rj.corp.sgi.com:java@freebsd.org>; Mon, 24 Sep 2001 01:24:44 -0700 Received: from sgiger.munich.sgi.com (sgiger.munich.sgi.com [144.253.192.2]) by yog-sothoth.sgi.com (980305.SGI.8.8.8-aspam-6.2/980304.SGI-aspam-europe) via SMTP id KAA1037312 for <@eugate.sgi.com:java@freebsd.org>; Mon, 24 Sep 2001 10:24:16 +0200 (CEST) mail_from (gwk@sgi.com) Received: from cuckoo.munich.sgi.com (cuckoo.munich.sgi.com [144.253.192.109]) by sgiger.munich.sgi.com (950413.SGI.8.6.12/950213.SGI.AUTOCF) via ESMTP id KAA02922; Mon, 24 Sep 2001 10:23:50 +0200 Received: from hunter.munich.sgi.com (hunter.munich.sgi.com [144.253.197.18]) by cuckoo.munich.sgi.com (SGI-8.9.3/8.9.3) with ESMTP id KAA53506; Mon, 24 Sep 2001 10:23:38 +0200 (CEST) Received: from hunter.munich.sgi.com (localhost.munich.sgi.com [127.0.0.1]) by hunter.munich.sgi.com (8.11.5/8.11.5) with ESMTP id f8O8NH001674; Mon, 24 Sep 2001 10:23:24 +0200 (CEST) (envelope-from gwk@sgi.com) Date: Mon, 24 Sep 2001 10:23:16 +0200 Message-ID: From: "Georg-W. Koltermann" To: java@freebsd.org Subject: exit value of external process always reported as 0 User-Agent: Wanderlust/2.4.1 (Stand By Me) SEMI/1.13.7 (Awazu) FLIM/1.13.2 (Kasanui) Emacs/20.7 (i386--freebsd) MULE/4.0 (HANANOEN) Organization: SGI X-Attribution: gwk MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu") Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, with the current FreeBSD JDK 1.3.1 compiled from ports I always get zero exit values for external processes. Even if I run "false", I get an exit value of 0: hunter[14]$ cat Gwk.java public class Gwk { public static void main(String argv[]) throws Exception { Process p = Runtime.getRuntime().exec("false"); System.out.println("waitFor(): " + p.waitFor()); System.out.println("exitValue(): " + p.exitValue()); } } hunter[15]$ javac Gwk.java hunter[16]$ java -showversion Gwk java version "1.3.1-internal" Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-internal-gwk-010911-22:36) Classic VM (build 1.3.1-internal-gwk-010911-22:36, green threads, nojit) waitFor(): 0 exitValue(): 0 hunter[17]$ The Linux jdk returns the expected result: hunter[3]$ java -showversion Gwk java version "1.3.1_01" Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01) Classic VM (build 1.3.1_01, green threads, nojit) waitFor(): 1 exitValue(): 1 -- Regards, Georg. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message