aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/lang/Runtime.java
diff options
context:
space:
mode:
authorDavid Daney <daney@gcc.gnu.org>2004-08-12 16:20:11 +0000
committerDavid Daney <daney@gcc.gnu.org>2004-08-12 16:20:11 +0000
commitc58f29001dee1b4f6dfb09cc2a49f2739b106553 (patch)
treed4c32b005acd50085c465f85fda29e5885955ec5 /libjava/java/lang/Runtime.java
parentdb151e9d837b9a27d2de105869186e2f9b7ca353 (diff)
downloadgcc-c58f29001dee1b4f6dfb09cc2a49f2739b106553.zip
gcc-c58f29001dee1b4f6dfb09cc2a49f2739b106553.tar.gz
gcc-c58f29001dee1b4f6dfb09cc2a49f2739b106553.tar.bz2
re PR libgcj/11801 (Problems with Process.waitFor() and exitValue())
2004-08-12 David Daney <ddaney@avtrex.com> 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
Diffstat (limited to 'libjava/java/lang/Runtime.java')
-rw-r--r--libjava/java/lang/Runtime.java7
1 files changed, 5 insertions, 2 deletions
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,