From c58f29001dee1b4f6dfb09cc2a49f2739b106553 Mon Sep 17 00:00:00 2001 From: David Daney Date: Thu, 12 Aug 2004 16:20:11 +0000 Subject: re PR libgcj/11801 (Problems with Process.waitFor() and exitValue()) 2004-08-12 David Daney PR libgcj/11801 * java/lang/PosixProcess.java: Rewrote. * java/lang/natPosixProcess.cc: Rewrote. * java/lang/Runtime.java (execInternal): Declare throws IOException. * gcj/javaprims.h (ConcreteProcess$ProcessManager): Declare. * posix-threads.cc (block_sigchld) New function. (_Jv_ThreadRegister) Use it. (_Jv_ThreadStart) Use it. * configure.in (PLATFORM_INNER_NAT_HDRS): New AC_SUBST() used in... * Makefile.am: ... to specify extra native headers. * configure: Regenerated. * include/config.h: Regenerated. * Makefile.in: Regenerated. * gcj/Makefile.in: Regenerated. * include/Makefile.in: Regenerated. * testsuite/Makefile.in: Regenerated. From-SVN: r85880 --- libjava/java/lang/Runtime.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libjava/java/lang/Runtime.java') diff --git a/libjava/java/lang/Runtime.java b/libjava/java/lang/Runtime.java index 749aa36..b6b8c4f 100644 --- a/libjava/java/lang/Runtime.java +++ b/libjava/java/lang/Runtime.java @@ -1,5 +1,5 @@ /* Runtime.java -- access to the VM process - Copyright (C) 1998, 2002, 2003 Free Software Foundation + Copyright (C) 1998, 2002, 2003, 2004 Free Software Foundation This file is part of GNU Classpath. @@ -734,8 +734,11 @@ public class Runtime * @param dir the directory to use, may be null * @return the newly created process * @throws NullPointerException if cmd or env have null elements + * @throws IOException if the exec fails */ - native Process execInternal(String[] cmd, String[] env, File dir); + native Process execInternal(String[] cmd, String[] env, File dir) + throws IOException; + /** * Get the system properties. This is done here, instead of in System, -- cgit v1.1