summaryrefslogtreecommitdiff
path: root/libjava/classpath/native
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2009-03-04 09:36:05 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2009-03-04 09:36:05 +0000
commita1f260313dd829a3eea7f0a54f317599dcff89e4 (patch)
tree62ce374fd47a35b7e696b3f046e16bab895aaef9 /libjava/classpath/native
parentf8163223503585626c24d57e165609bae9150744 (diff)
downloadgcc-a1f260313dd829a3eea7f0a54f317599dcff89e4.tar.gz
2009-03-04 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk r144598 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@144599 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/classpath/native')
-rw-r--r--libjava/classpath/native/jni/native-lib/cpproc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libjava/classpath/native/jni/native-lib/cpproc.c b/libjava/classpath/native/jni/native-lib/cpproc.c
index bb34f6d6e38..0c80703d636 100644
--- a/libjava/classpath/native/jni/native-lib/cpproc.c
+++ b/libjava/classpath/native/jni/native-lib/cpproc.c
@@ -86,7 +86,8 @@ int cpproc_forkAndExec (char * const *commandLine, char * const * newEnviron,
close_all_fds(local_fds, pipe_count * 2);
- chdir(wd);
+ i = chdir(wd);
+ /* FIXME: Handle the return value */
if (newEnviron == NULL)
execvp(commandLine[0], commandLine);
else